﻿#include "connectmanager.h"

#include <QList>

void ConnectManager::scanAvailabelInfo()
{
    m_serialInfo.clear();

    //遍历可用串口
    foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
        QString serialPortInfo = info.portName() + ":" + info.description();
        m_serialInfo << serialPortInfo;
    }

    emit serialInfoChanged();
}

void ConnectManager::saveChoosedSerialMessage(QString plc_serial, QString plc_baudrate, QString plc_databit, QString plc_paritybit, QString plc_stopbit,
                                              QString printer_serial, QString printer_baudrate, QString printer_databit, QString printer_paritybit, QString printer_stopbit,
                                              QString scanner_serial, QString scanner_baudrate, QString scanner_databit, QString scanner_paritybit, QString scanner_stopbit)
{
    QString writeStream;
    writeStream = plc_serial.section(":",0,0) + ";" + plc_baudrate + ";" + plc_databit + ";" +plc_paritybit + ";" +plc_stopbit
                  + ";" + printer_serial.section(":",0,0) + ";" + printer_baudrate + ";" + printer_databit + ";" + printer_paritybit + ";" +printer_stopbit
                  + ";" + scanner_serial.section(":",0,0) + ";" + scanner_baudrate + ";" + scanner_databit + ";" + scanner_paritybit + ";" + scanner_stopbit;

    // qDebug()<<writeStream;
    // Modbus - 设置连接参数
    m_Modbus->setConnectParameter(plc_serial.section(":",0,0),
                                  plc_baudrate,
                                  plc_databit,
                                  plc_paritybit,
                                  plc_stopbit);

    // 打印机 - 设置连接参数
    m_Printer->setConnectParameter(printer_serial.section(":",0,0),
                                   printer_baudrate,
                                   printer_databit,
                                   printer_paritybit,
                                   printer_stopbit);

    // 扫码枪 - 设置连接参数
    m_Scanner->setConnectParameter(printer_serial.section(":",0,0),
                                   printer_baudrate,
                                   printer_databit,
                                   printer_paritybit,
                                   printer_stopbit);

    QFile file(QApplication::applicationDirPath() + "/connectMessage.txt");

    if(file.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
    {
        QTextStream outStream(&file);

        outStream<<writeStream;

        file.close();
        qDebug()<<"写入连接参数成功";
    }
    else
    {
        qDebug()<<"写入连接参数失败";
    }

}

void ConnectManager::readSavedSerialMessage()
{
    QFile file (QApplication::applicationDirPath() + "/connectMessage.txt");

    if(!file.open(QIODevice::ReadOnly))
    {
        return ;
    }

    QTextStream in(&file);

    while(!in.atEnd())
    {
        QString oneCount = in.readLine();

        QStringList readResult = oneCount.split(';');
        // PLC 连接参数设定
        // qDebug()<<readResult.at(0)<<" "<<readResult.at(1)<<" "<<readResult.at(2)<<" "<<readResult.at(3)<<" "<<readResult.at(4);
        m_Modbus->setConnectParameter(readResult.at(0),readResult.at(1),readResult.at(2),readResult.at(3),readResult.at(4));
        // 打印机连接参数设定
        // qDebug()<<readResult.at(5)<<" "<<readResult.at(6)<<" "<<readResult.at(7)<<" "<<readResult.at(8)<<" "<<readResult.at(9);
        m_Printer->setConnectParameter(readResult.at(5),readResult.at(6),readResult.at(7),readResult.at(8),readResult.at(9));
        // 扫码枪连接参数设定
        // qDebug()<<readResult.at(10)<<" "<<readResult.at(11)<<" "<<readResult.at(12)<<" "<<readResult.at(13)<<" "<<readResult.at(14);
        m_Scanner->setConnectParameter(readResult.at(10),readResult.at(11),readResult.at(12),readResult.at(13),readResult.at(14));
    }

    file.close();
}

void ConnectManager::connectMechines()
{
    // 连接 PLC
    m_Modbus->connectMethod();
    if(m_Modbus->m_Modbus->state() == QModbusDevice::ConnectedState)
    {
        setPLC_State(true);

        m_Modbus->read_GJTIME_Mode_State();
        setGJTIME_Mode(m_Modbus->GJTIME_Mode);
        // 拉手功能是否存在
        m_Modbus->read_LS_Exist_value();
        setLS_Exist(m_Modbus->LS_Exist);
        // 45度专切
        m_Modbus->read_Angle45_Mode_value();
        setAngle45_Mode(m_Modbus->Angle45_Mode);
        // 打印机有无
        m_Modbus->read_Printer_Exist_value();
        setPrinter_Exist(m_Modbus->Printer_Exist);
        // 伺服类型
        m_Modbus->read_Servo_Mode_value();
        setServo_Mode(m_Modbus->Servo_Mode);
        // 托料架有无
        m_Modbus->read_TLJ_Exist_value();
        setTLJ_Exist(m_Modbus->TLJ_Exist);
        // 锯片选择有无
        m_Modbus->read_SawChoose_Mode_State();
        setSawChoose_Mode(m_Modbus->SawChoose_Mode);
        // 旋钮功能
        m_Modbus->read_Knob_Program_value();
        setKnob_Program(m_Modbus->Knob_Program);
        // 自动测高功能
        m_Modbus->read_Auto_Observe_Exist_value();
        setAutoObserve_Exist(m_Modbus->AutoObserve_Exist);
        // 限位开关
        m_Modbus->read_Limit_Btn_value();
        setLimitBtn_Mode(m_Modbus->LimitBtn_Mode);
        // 读取内外摆模式 内摆1 外摆0
        m_Modbus->read_NB_WB_value();
        setNBWB_Mode(m_Modbus->NBWB_Mode);
        // 机头旋钮常开
        m_Modbus->read_JT_Knob_Mode_value();
        setJT_Knob_Mode(m_Modbus->JT_Knob_Mode);
        // 电磁阀断电不断电
        m_Modbus->reaed_DCF_Power_Mode_value();
        setDCF_Power_Mode(m_Modbus->DCF_Power_Mode);
        // 急停按钮模式
        m_Modbus->read_Scram_Mode_value();
        setScram_Mode(m_Modbus->Scram_Mode);
        // 编码器位数
        m_Modbus->read_Encoder_Mode_value();
        setEncoder_Mode(m_Modbus->Encoder_Mode);
        // 伺服报警模式
        m_Modbus->read_Servo_Warning_Mode_value();
        setServo_Warning_Mode(m_Modbus->Servo_Warning_Mode);

        m_timer->start();
    }
    else
    {
        setPLC_State(false);
        qDebug()<<"Cpp : 定时器没有启动";
    }
    // 连接 打印机
    m_Printer->connectMethod();
    // 连接 扫码枪
    m_Scanner->connectMethod();
}

void ConnectManager::printerMethod(bool flag,
                                   QString qmlLength,
                                   QString qmlHeight,
                                   QString qmlLeftAngle,
                                   QString qmlRightAngle,
                                   QString qmlCustomName,
                                   QString qmlMaterialName)
{
    if(!flag)
    {
        qDebug()<<"炜煌打印机 - 打印动作";
        m_Printer->printerMethod_WH(qmlLength,
                                    qmlHeight,
                                    qmlLeftAngle,
                                    qmlRightAngle,
                                    qmlCustomName,
                                    qmlMaterialName);
    }
    else
    {
        qDebug()<<"瑞工打印机 - 打印动作";
        m_Printer->printerMethod_RG(qmlLength,
                                    qmlHeight,
                                    qmlLeftAngle,
                                    qmlRightAngle,
                                    qmlCustomName,
                                    qmlMaterialName);
    }
}

// A - 构造函数
ConnectManager::ConnectManager(QObject *parent)
    : QObject{parent}
{
    // 读取 已保存的连接参数
    readSavedSerialMessage();

    // 连接 各个设备
    connectMechines();

    QObject::connect(m_Scanner->m_Serial,SIGNAL(readyRead()),this,SLOT(onScannerResult_Slots()));
    QObject::connect(this,SIGNAL(sig_ScannerResult(QStringList)),QR_Manager,SLOT(onReadScannerResult(QStringList)));

    // 定时器设定
    m_timer->setInterval(500);

    QObject::connect(m_timer,SIGNAL(timeout()),this,SLOT(read_PLC_Parameters_Slots()));

    // 初始化报警信息
    initWarnData();

}

void ConnectManager::write_modbus_rtu_Coils(QString address, QString newValue)
{
    m_Modbus->write_modbus_rtu_Coils(address,newValue);
}

void ConnectManager::write_modbus_rtu_Hold_F(QString address, QString newValue)
{
    m_Modbus->write_modbus_rtu_Hold_F(address,newValue);
}

void ConnectManager::write_modbus_rtu_Hold(QString address, QString newValue)
{
    m_Modbus->write_modbus_rtu_Hold(address,newValue);
}
// 计算 加工界面上限和下限
void ConnectManager::setProcess_UpLimit_DownLimit()
{
    // 左锯角度反馈
    // m_Modbus->read_LeftSawAngle_Backvalue();
    setLeftSawAngle(m_Modbus->leftSawAngleBack);
    // qDebug()<<"左锯角度45:"<<leftSawAngle();
    // 右锯角度反馈
    // m_Modbus->read_RightSawAngle_Backvalue();
    setRightSawAngle(m_Modbus->rightSawAngleBack);
    // qDebug()<<"右锯角度45:"<<rightSawAngle();
    // 内摆外摆模式
    // m_Modbus->read_NB_WB_value();
    setNBWB_Mode(m_Modbus->NBWB_Mode);
    // qDebug()<<"内外摆模式:"<<NBWB_Mode();
    // 手动料高
    // m_Modbus->read_LG_value();
    setLG_value(m_Modbus->LG_value);
    // qDebug()<<"料高值:"<<LG_value().toFloat();
    // 原点值
    // m_Modbus->read_Origin_value();
    setOriginValue(m_Modbus->OriginValue);
    // qDebug()<<"原点值:"<<OriginValue().toFloat();
    // 最大切割长度
    // m_Modbus->read_Max_Cut_Longth_value();
    setMax_Cut_Longth(m_Modbus->Max_Cut_Longth);
    // qDebug()<<"最大切割长度:"<<Max_Cut_Longth().toFloat();


    float lcxx = 0;     // 料长下限
    float lcsx = 0;     // 料长上限

    if(leftSawAngle() == 0 && rightSawAngle() == 0)
    {
        if(NBWB_Mode() == 0)
        {
            // qDebug()<<"料长下限 = 原点值 + 手动料高 + 手动料高 ";
            lcxx = (OriginValue().toFloat() + LG_value().toFloat() * 2);
            // qDebug()<<"当前料长下限: " <<lcxx;

            // qDebug()<<"料长上限 = 最大切割长度 + 手动料高 + 手动料高 ";
            lcsx = (Max_Cut_Longth().toFloat() + LG_value().toFloat() * 2);
            // qDebug()<<"当前料长上限: " <<lcsx;
        }
        else
        {
            // qDebug()<<"料长下限 = 内摆安全位置 ";
            lcxx = NB_SafeLocation().toFloat();
            // qDebug()<<"当前料长下限: " <<lcxx;
            // qDebug()<<"料长上限 = 最大切割长度 ";
            lcsx = Max_Cut_Longth().toFloat();
            // qDebug()<<"当前料长上限: " <<lcsx;
        }
    }
    else if(leftSawAngle() == 1 && rightSawAngle() == 1)
    {
        // qDebug()<<"料长下限 = 原点值 ";
        lcxx = OriginValue().toFloat();
        // qDebug()<<"当前料长下限: " <<lcxx;
        // qDebug()<<"料长上限 = 最大切割长度 ";
        lcsx = Max_Cut_Longth().toFloat();
        // qDebug()<<"当前料长上限: " <<lcsx;
    }
    else if((leftSawAngle() == 0 && rightSawAngle() == 1) || (leftSawAngle() == 1 && rightSawAngle() == 0))
    {
        if(NBWB_Mode() == 0)
        {
            // qDebug()<<"料长下限 = 原点值 + 手动料高 ";
            lcxx = (OriginValue().toFloat() + LG_value().toFloat());
            // qDebug()<<"当前料长下限: " <<lcxx;
            // qDebug()<<"料长上限 = 最大切割长度 + 手动料高 ";
            lcsx = (Max_Cut_Longth().toFloat() + LG_value().toFloat());
            // qDebug()<<"当前料长上限: " <<lcsx;
        }
        else
        {
            // qDebug()<<"料长下限 = 内摆安全位置 ";
            lcxx = NB_SafeLocation().toFloat();
            // qDebug()<<"当前料长下限: " <<lcxx;
            // qDebug()<<"料长上限 = 最大切割长度 ";
            lcsx = Max_Cut_Longth().toFloat();
            // qDebug()<<"当前料长上限: " <<lcsx;
        }
    }

    // qDebug()<<"当前料长设定值:  "<<LC_value();
    // qDebug()<<"计算后 下限:  "<<QString("%1").arg(lcxx, 0, 'f', 2);
    // qDebug()<<"计算后 上限:  "<<QString("%1").arg(lcsx, 0, 'f', 2);
    setLG_set_D_Limit(QString("%1").arg(lcxx, 0, 'f', 2));
    setLG_set_U_Limit(QString("%1").arg(lcsx, 0, 'f', 2));

    if(LC_value().toFloat() < lcxx)
    {
        setLC_value(QString("%1").arg(lcxx, 0, 'f', 2));
    }

    if(LC_value().toFloat() > lcsx)
    {
        setLC_value(QString("%1").arg(lcsx, 0, 'f', 2));
    }


}
// 计算 超长料长上限和下限
void ConnectManager::setExtraLong_UpLimit_DownLimit()
{
    // 左锯角度反馈
    // m_Modbus->read_LeftSawAngle_Backvalue();
    setLeftSawAngle(m_Modbus->leftSawAngleBack);
    // qDebug()<<"左锯角度45:"<<leftSawAngle();
    // 右锯角度反馈
    // m_Modbus->read_RightSawAngle_Backvalue();
    setRightSawAngle(m_Modbus->rightSawAngleBack);
    // qDebug()<<"右锯角度45:"<<rightSawAngle();
    // 内摆外摆模式
    // m_Modbus->read_NB_WB_value();
    setNBWB_Mode(m_Modbus->NBWB_Mode);
    // qDebug()<<"内外摆模式:"<<NBWB_Mode();
    // 手动料高
    // m_Modbus->read_LG_value();
    setLG_value(m_Modbus->LG_value);
    // qDebug()<<"料高值:"<<LG_value().toFloat();
    // 原点值
    // m_Modbus->read_Origin_value();
    setOriginValue(m_Modbus->OriginValue);
    // qDebug()<<"原点值:"<<OriginValue().toFloat();
    // 最大切割长度
    // m_Modbus->read_Max_Cut_Longth_value();
    setMax_Cut_Longth(m_Modbus->Max_Cut_Longth);
    // 内摆安全位置
    // m_Modbus->read_NB_SafeLocation_value();
    setNB_SafeLocation(m_Modbus->NB_SafeLocation);

    float lcxx = 0;     // 超长料长下限
    float lcsx = 0;     // 超长料长上限

    if(leftSawAngle() == 0 && rightSawAngle() == 0)
    {
        if(NBWB_Mode() == 0)
        {
            // qDebug()<<"超长料长下限 = 最大切割长度 + 手动料高 + 手动料高 ";
            lcxx = (Max_Cut_Longth().toFloat() + LG_value().toFloat() * 2);
            // qDebug()<<"当前 超长料长下限: " <<lcxx;

            // qDebug()<<"超长料长上限 = 最大切割长度 + 最大切割长度 + 手动料高 + 手动料高 - 原点值 ";
            lcsx = (Max_Cut_Longth().toFloat() * 2 + LG_value().toFloat() * 2 - OriginValue().toFloat());
            // qDebug()<<"当前 超长料长上限: " <<lcsx;
        }
        else
        {
            // qDebug()<<"超长料长下限 = 最大切割长度 ";
            lcxx = Max_Cut_Longth().toFloat();
            // qDebug()<<"当前 超长料长下限: " <<lcxx;
            // qDebug()<<"超长料长上限 = 最大切割长度 * 2 - 内摆安全位置 ";
            lcsx = (Max_Cut_Longth().toFloat() * 2 - NB_SafeLocation().toFloat());
            // qDebug()<<"当前 超长料长上限: " <<lcsx;
        }
    }
    else if(leftSawAngle() == 1 && rightSawAngle() == 1)
    {
        // qDebug()<<"超长料长下限 = 最大切割长度 ";
        lcxx = Max_Cut_Longth().toFloat();
        // qDebug()<<"当前 超长料长下限: " <<lcxx;
        // qDebug()<<"超长料长上限 = 最大切割长度 + 最大切割长度 - 原点值";
        lcsx = (Max_Cut_Longth().toFloat() * 2 - OriginValue().toFloat());
        // qDebug()<<"当前 超长料长上限: " <<lcsx;
    }
    else if((leftSawAngle() == 0 && rightSawAngle() == 1) || (leftSawAngle() == 1 && rightSawAngle() == 0))
    {
        if(NBWB_Mode() == 0)
        {
            // qDebug()<<"超长料长下限 = 最大切割长度 + 手动料高 ";
            lcxx = (Max_Cut_Longth().toFloat() + LG_value().toFloat());
            // qDebug()<<"当前料长下限: " <<lcxx;
            // qDebug()<<"料长上限 = 最大切割长度 + 最大切割长度 + 手动料高 - 原点值 ";
            lcsx = (Max_Cut_Longth().toFloat() * 2 + LG_value().toFloat() - OriginValue().toFloat());
            // qDebug()<<"当前料长上限: " <<lcsx;
        }
        else
        {
            // qDebug()<<"料长下限 = 最大切割长度 ";
            lcxx = Max_Cut_Longth().toFloat();
            // qDebug()<<"当前料长下限: " <<lcxx;
            // qDebug()<<"料长上限 = 最大切割长度 * 2 - 内摆安全位置 ";
            lcsx = (Max_Cut_Longth().toFloat() * 2 - NB_SafeLocation().toFloat());
            // qDebug()<<"当前料长上限: " <<lcsx;
        }
    }

    // qDebug()<<"当前 超长料长设定值:  "<<ExtraLong_LC();
    // qDebug()<<"计算后 下限:  "<<QString("%1").arg(lcxx, 0, 'f', 2);
    // qDebug()<<"计算后 上限:  "<<QString("%1").arg(lcsx, 0, 'f', 2);

    setExtraLong_D_Limit(QString("%1").arg(lcxx, 0, 'f', 2));
    setExtraLong_U_Limit(QString("%1").arg(lcsx, 0, 'f', 2));


    if(ExtraLong_LC().toFloat() < lcxx)
    {
        setExtraLong_LC(QString("%1").arg(lcxx, 0, 'f', 2));
    }

    if(ExtraLong_LC().toFloat() > lcsx)
    {
        setExtraLong_LC(QString("%1").arg(lcsx, 0, 'f', 2));
    }


}

//  计算 超短料长上限和下限
void ConnectManager::setExtraShort_UpLimit_DownLimit()
{
    // 左锯角度反馈
    // m_Modbus->read_LeftSawAngle_Backvalue();
    setLeftSawAngle(m_Modbus->leftSawAngleBack);
    // qDebug()<<"左锯角度45:"<<leftSawAngle();
    // 右锯角度反馈
    // m_Modbus->read_RightSawAngle_Backvalue();
    setRightSawAngle(m_Modbus->rightSawAngleBack);
    // qDebug()<<"右锯角度45:"<<rightSawAngle();
    // 内摆外摆模式
    // m_Modbus->read_NB_WB_value();
    setNBWB_Mode(m_Modbus->NBWB_Mode);
    // qDebug()<<"内外摆模式:"<<NBWB_Mode();
    // 手动料高
    // m_Modbus->read_LG_value();
    setLG_value(m_Modbus->LG_value);
    // qDebug()<<"料高值:"<<LG_value().toFloat();
    // 原点值
    // m_Modbus->read_Origin_value();
    setOriginValue(m_Modbus->OriginValue);
    // qDebug()<<"原点值:"<<OriginValue().toFloat();
    // 回拉距离
    // m_Modbus->read_HL_Distance_value();
    setHL_Distance(m_Modbus->HL_Distance);
    // qDebug()<<"回拉距离:"<<HL_Distance().toFloat();
    // 超短料长
    // m_Modbus->read_ExtraShort_LC_value();
    setExtraShort_LC(m_Modbus->ExtraShort_LC);
    // qDebug()<<"超短料长:"<<LC_value().toFloat();
    // 内摆安全位置
    // m_Modbus->read_NB_SafeLocation_value();
    setNB_SafeLocation(m_Modbus->NB_SafeLocation);
    // qDebug()<<"内外摆安全位置:"<<NB_SafeLocation().toFloat();

    float lcxx = 0;     // 料长下限
    float lcsx = 0;     // 料长上限

    if(leftSawAngle() == 0 && rightSawAngle() == 0)
    {
        if(NBWB_Mode() == 0)
        {
            // qDebug()<<"超短料长下限 = 原点值 - 回拉距离 + 料高 + 料高 ";
            lcxx = (OriginValue().toFloat() - HL_Distance().toFloat() + LG_value().toFloat() * 2);
            // qDebug()<<"当前超短料长下限: " <<lcxx;
            // qDebug()<<"超短料长上限 = 原点值 + 料高 + 料高 ";
            lcsx = (OriginValue().toFloat() + LG_value().toFloat() * 2);
            // qDebug()<<"当前超短料长上限: " <<lcsx;
        }
        else
        {
            // qDebug()<<"超短料长下限 = 内摆安全位置 - 回拉距离 ";
            lcxx = (NB_SafeLocation().toFloat() - HL_Distance().toFloat());
            // qDebug()<<"当前超短料长下限: " <<lcxx;
            // qDebug()<<"超短料长上限 = 内摆安全位置 ";
            lcsx = NB_SafeLocation().toFloat();
            // qDebug()<<"当前超短料长上限: " <<lcsx;
        }
    }
    else if(leftSawAngle() == 1 && rightSawAngle() == 1)
    {
        // qDebug()<<"超短料长下限 = 原点值 - 回拉距离 ";
        lcxx = (OriginValue().toFloat() - HL_Distance().toFloat());
        // qDebug()<<"当前超短料长下限: " <<lcxx;
        // qDebug()<<"超短料长上限 = 原点值 ";
        lcsx = OriginValue().toFloat();
        // qDebug()<<"当前超短料长上限: " <<lcsx;
    }
    else if((leftSawAngle() == 0 && rightSawAngle() == 1) || (leftSawAngle() == 1 && rightSawAngle() == 0))
    {
        if(NBWB_Mode() == 0)
        {
            // qDebug()<<"超短料长下限 = 原点值 - 回拉距离 + 料高 ";
            lcxx = (OriginValue().toFloat() - HL_Distance().toFloat() + LG_value().toFloat());
            // qDebug()<<"当前超短料长下限: " <<lcxx;
            // qDebug()<<"超短料长上限 = 原点值 + 料高 ";
            lcsx = (OriginValue().toFloat() + LG_value().toFloat());
            // qDebug()<<"当前超短料长上限: " <<lcsx;
        }
        else
        {
            // qDebug()<<"超短料长下限 = 内摆安全位置 - 回拉距离 ";
            // qDebug()<<"内摆安全位置:"<<NB_SafeLocation().toFloat();
            // qDebug()<<"回拉距离:"<<HL_Distance().toFloat();
            lcxx = (NB_SafeLocation().toFloat() - HL_Distance().toFloat());
            // qDebug()<<"当前超短料长下限: " <<lcxx;
            // qDebug()<<"超短料长上限 = 内摆安全位置 ";
            lcsx = (NB_SafeLocation().toFloat());
            // qDebug()<<"当前超短料长上限: " <<lcsx;
        }
    }

    // qDebug()<<"计算后 下限:  "<<QString("%1").arg(lcxx, 0, 'f', 2);
    // qDebug()<<"计算后 上限:  "<<QString("%1").arg(lcsx, 0, 'f', 2);
    setExtraShort_D_Limit(QString("%1").arg(lcxx, 0, 'f', 2));
    setExtraShort_U_Limit(QString("%1").arg(lcsx, 0, 'f', 2));

    if(ExtraShort_LC().toFloat() < lcxx)
    {
        setExtraShort_LC(QString("%1").arg(lcxx, 0, 'f', 2));
    }

    if(ExtraShort_LC().toFloat() > lcsx)
    {
        setExtraShort_LC(QString("%1").arg(lcsx, 0, 'f', 2));
    }

    // qDebug()<<"最终 最短料长:"<<ExtraShort_LC();
}

void ConnectManager::order_Clicked_Write_Data_Into_PLC()
{
    // qDebug()<<"111:   "<<NBWB_Mode();

    if(NBWB_Mode() == false)
    {
        // qDebug()<<"执行  >>  "<<"M140排料选择 = 1";
        write_modbus_rtu_Coils("140","1");
        // qDebug()<<"执行  >>  "<<"M141排料定位 = 1";
        write_modbus_rtu_Coils("141","1");
        // qDebug()<<"执行  >>  "<<"M140排料定位 = 0";
        write_modbus_rtu_Coils("140","0");
        // qDebug()<<"执行  >>  "<<"M141排料定位 = 0";
        write_modbus_rtu_Coils("140","0");
    }
    else
    {
        // qDebug()<<"执行  >>  "<<"M140排料选择 = 1";
        write_modbus_rtu_Coils("140","1");
        // qDebug()<<"执行  >>  "<<"M140排料定位 = 0";
        write_modbus_rtu_Coils("140","0");
    }

    // 置位 M172 = 0
    write_modbus_rtu_Coils("172","0");

}

void ConnectManager::initWarnData()
{
    // 初始化信号数据，开始时全部置为 false
    for(int i = 0 ;  i  < 4 ;++i)
    {
        m_warnVector.append(false);
        m_newWarnVector.append(false);
    }

    // 定义信号对应的详细报警信息描述
    m_warnDetail.insert(0,"急停有效！！");
    m_warnDetail.insert(1,"伺服电机报警！！");
    m_warnDetail.insert(2," 正向限位超程！！");
    m_warnDetail.insert(3," 反向限位超程！！");
}

void ConnectManager::readNewWarningData()
{
    for(int i = 0 ; i < m_warnVector.size() ; i++)
    {
        switch (i) {
        case 0:
            m_newWarnVector[i]= m_ScramWarningSig;
            break;
        case 1:
            m_newWarnVector[i]= m_ServoWarningSig;
            break;
        case 2:
            m_newWarnVector[i]=m_F_LimitWarningSig;
            break;
        case 3:
            m_newWarnVector[i]=m_R_LimitWarningSig;
            break;
        default:
            break;
        }
    }

    // for(int i=0;i<m_newWarnVector.size();i++)
    // {
    //     qDebug()<<"m_newWarnVector "
    //              <<QString::number(i)<<": "<<m_newWarnVector[i];
    // }

    // 保存报警信息
    saveWarnningInfo();

}



void ConnectManager::readWarnningSignal()
{
    // foreachHistory();

        m_warnInfo = "现在报警信号:";

        for(int i=0;i<m_warnVector.size();i++)
        {
            switch (i) {
            case 0:
                getWarnningDetailInfo(i);
                break;
            case 1:
                getWarnningDetailInfo(i);
                break;
            case 2:
                getWarnningDetailInfo(i);
                break;
            case 3:
                getWarnningDetailInfo(i);
                break;
            default:
                break;
            }
        }

        emit sig_WarningSignalChanged(m_warnInfo);
}

void ConnectManager::getWarnningDetailInfo(int index)
{
    if(m_warnVector[index] == true)
    {
        m_warnInfo = m_warnInfo + m_warnDetail[index];
    }
}

void ConnectManager::saveWarnningInfo()
{
    for(int i = 0 ; i < m_warnVector.size() ; ++i)
    {
        m_warnVector[i] = m_newWarnVector[i];
    }

    readWarnningSignal();
}

QStringList ConnectManager::serialInfo() const
{
    return m_serialInfo;
}

void ConnectManager::setSerialInfo(const QStringList &newSerialInfo)
{
    if (m_serialInfo == newSerialInfo)
        return;
    m_serialInfo = newSerialInfo;
    emit serialInfoChanged();
}

void ConnectManager::onScannerResult_Slots()
{

    QByteArray buffer = m_Scanner->m_Serial->readAll();
    // QString scanResult = QString::fromLocal8Bit(buffer);
    QString scanResult = QString(buffer);

    switch(QRTYPE())
    {
    case 0:
    {
        qDebug()<<"触发 长风二维码 数据解析";
        // qDebug()<<"扫码枪扫描事件触发";

        QStringList resultList = scanResult.split(",");

        // int lineCount = resultList.length()/4;

        // qDebug()<<"长风二维码有效数据组数 "<<lineCount ;

        // QString Longth01 = resultList[1];
        // QString LeftAngle01 =resultList[2];
        // QString RightAngle01 = resultList[3];
        // QString Count01 = resultList[4];


        write_modbus_rtu_Hold_F("1600",resultList[1]);
        write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
        write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[3].toDouble()));
        write_modbus_rtu_Hold("1680",resultList[4]);

        // QString Longth02 = resultList[5];
        // QString LeftAngle02 = resultList[6];
        // QString RightAngle02 = resultList[7];
        // QString Count02 = resultList[8];

        write_modbus_rtu_Hold_F("1602",resultList[5]);
        write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[6].toDouble()));
        write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[7].toDouble()));
        write_modbus_rtu_Hold("1681",resultList[8]);

        // QString Longth03 = resultList[9];
        // QString LeftAngle03= resultList[10];
        // QString RightAngle03 = resultList[11];
        // QString Count03 = resultList[12];

        write_modbus_rtu_Hold_F("1604",resultList[9]);
        write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[10].toDouble()));
        write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[11].toDouble()));
        write_modbus_rtu_Hold("1682",resultList[12]);

        // QString Longth04 = resultList[13];
        // QString LeftAngle04 = resultList[14];
        // QString RightAngle04= resultList[15];
        // QString Count04 = resultList[16];

        write_modbus_rtu_Hold_F("1606",resultList[13]);
        write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[14].toDouble()));
        write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[15].toDouble()));
        write_modbus_rtu_Hold("1683",resultList[16]);

        // QString Longth05 = resultList[17];
        // QString LeftAngle05 = resultList[18];
        // QString RightAngle05 = resultList[19];
        // QString Count05 = resultList[20];

        write_modbus_rtu_Hold_F("1608",resultList[17]);
        write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[18].toDouble()));
        write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[19].toDouble()));
        write_modbus_rtu_Hold("1684",resultList[20]);

        // QString Longth06 = resultList[21];
        // QString LeftAngle06 = resultList[22];
        // QString RightAngle06 = resultList[23];
        // QString Count06 = resultList[24];

        write_modbus_rtu_Hold_F("1610",resultList[21]);
        write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[22].toDouble()));
        write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[23].toDouble()));
        write_modbus_rtu_Hold("1685",resultList[24]);

        // QString Longth07 = resultList[25];
        // QString LeftAngle07 = resultList[26];
        // QString RightAngle07 = resultList[27];
        // QString Count07 = resultList[28];

        write_modbus_rtu_Hold_F("1612",resultList[25]);
        write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[26].toDouble()));
        write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[27].toDouble()));
        write_modbus_rtu_Hold("1686",resultList[28]);

        // QString Longth08 = resultList[29];
        // QString LeftAngle08 = resultList[30];
        // QString RightAngle08 = resultList[31];
        // QString Count08 = resultList[32];

        write_modbus_rtu_Hold_F("1614",resultList[29]);
        write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[30].toDouble()));
        write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[31].toDouble()));
        write_modbus_rtu_Hold("1687",resultList[32]);

        // QString Longth09 = resultList[33];
        // QString LeftAngle09 = resultList[34];
        // QString RightAngle09 = resultList[35];
        // QString Count09 = resultList[36];

        write_modbus_rtu_Hold_F("1616",resultList[33]);
        write_modbus_rtu_Hold("1656",QString("%1").arg(resultList[34].toDouble()));
        write_modbus_rtu_Hold("1657",QString("%1").arg(resultList[35].toDouble()));
        write_modbus_rtu_Hold("1688",resultList[36]);

        // QString Longth10 =resultList[37];
        // QString LeftAngle10 =resultList[38];
        // QString RightAngle10 =resultList[39];
        // QString Count10 =resultList[40];

        write_modbus_rtu_Hold_F("1618",resultList[37]);
        write_modbus_rtu_Hold("1658",QString("%1").arg(resultList[38].toDouble()));
        write_modbus_rtu_Hold("1659",QString("%1").arg(resultList[39].toDouble()));
        write_modbus_rtu_Hold("1689",resultList[40]);

        /////////   11  //////
        write_modbus_rtu_Hold_F("1620","0");
        write_modbus_rtu_Hold("1660","0");
        write_modbus_rtu_Hold("1661","0");
        write_modbus_rtu_Hold("1690","0");
        /////////   12  //////
        write_modbus_rtu_Hold_F("1622","0");
        write_modbus_rtu_Hold("1662","0");
        write_modbus_rtu_Hold("1663","0");
        write_modbus_rtu_Hold("1691","0");
        /////////   13  //////
        write_modbus_rtu_Hold_F("1624","0");
        write_modbus_rtu_Hold("1664","0");
        write_modbus_rtu_Hold("1665","0");
        write_modbus_rtu_Hold("1692","0");
        /////////   14  //////
        write_modbus_rtu_Hold_F("1626","0");
        write_modbus_rtu_Hold("1666","0");
        write_modbus_rtu_Hold("1667","0");
        write_modbus_rtu_Hold("1693","0");
        /////////   15  //////
        write_modbus_rtu_Hold_F("1628","0");
        write_modbus_rtu_Hold("1668","0");
        write_modbus_rtu_Hold("1669","0");
        write_modbus_rtu_Hold("1694","0");
        /////////   16  //////
        write_modbus_rtu_Hold_F("1630","0");
        write_modbus_rtu_Hold("1670","0");
        write_modbus_rtu_Hold("1671","0");
        write_modbus_rtu_Hold("1695","0");
        /////////   17  //////
        write_modbus_rtu_Hold_F("1632","0");
        write_modbus_rtu_Hold("1672","0");
        write_modbus_rtu_Hold("1673","0");
        write_modbus_rtu_Hold("1696","0");
        /////////   18  //////
        write_modbus_rtu_Hold_F("1634","0");
        write_modbus_rtu_Hold("1674","0");
        write_modbus_rtu_Hold("1675","0");
        write_modbus_rtu_Hold("1697","0");
        /////////   19  //////
        write_modbus_rtu_Hold_F("1636","0");
        write_modbus_rtu_Hold("1676","0");
        write_modbus_rtu_Hold("1677","0");
        write_modbus_rtu_Hold("1698","0");
        /////////   20  //////
        write_modbus_rtu_Hold_F("1638","0");
        write_modbus_rtu_Hold("1678","0");
        write_modbus_rtu_Hold("1679","0");
        write_modbus_rtu_Hold("1699","0");

        break;
    }
    case 1:
    {
        qDebug()<<"触发 速制二维码 数据解析";
        // QByteArray buffer = m_Scanner->m_Serial->readAll();

        // QString scanResult = QString::fromLocal8Bit(buffer);

        QStringList resultList = scanResult.split(",");

        // int lineCount = resultList.count()/4;

        // qDebug()<<"速制二维码有效数据组数: "<<lineCount;

        // qDebug()<<"速制二维码 - 框";
        // QString Longth01 = resultList[1];
        // QString LeftAngle01 = resultList[2];
        // QString RightAngle01 = resultList[3];
        // QString Count01 = resultList[4];

        write_modbus_rtu_Hold_F("1600",resultList[1]);
        write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
        write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[3].toDouble()));
        write_modbus_rtu_Hold("1680",resultList[4]);

        // QString Longth02 = resultList[5];
        // QString LeftAngle02 = resultList[6];
        // QString RightAngle02 = resultList[7];
        // QString Count02 = resultList[8];

        write_modbus_rtu_Hold_F("1602",resultList[5]);
        write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[6].toDouble()));
        write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[7].toDouble()));
        write_modbus_rtu_Hold("1681",resultList[8]);

        // QString Longth03 = resultList[9];
        // QString LeftAngle03= resultList[10];
        // QString RightAngle03 =resultList[11];
        // QString Count03 =resultList[12];

        write_modbus_rtu_Hold_F("1604",resultList[9]);
        write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[10].toDouble()));
        write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[11].toDouble()));
        write_modbus_rtu_Hold("1682",resultList[12]);

        // QString Longth04 =resultList[13];
        // QString LeftAngle04 =resultList[14];
        // QString RightAngle04= resultList[15];
        // QString Count04 =resultList[16];

        write_modbus_rtu_Hold_F("1606",resultList[13]);
        write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[14].toDouble()));
        write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[15].toDouble()));
        write_modbus_rtu_Hold("1683",resultList[16]);

        // QString Longth05 =resultList[17];
        // QString LeftAngle05 =resultList[18];
        // QString RightAngle05 =resultList[19];
        // QString Count05 =resultList[20];

        write_modbus_rtu_Hold_F("1608",resultList[17]);
        write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[18].toDouble()));
        write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[19].toDouble()));
        write_modbus_rtu_Hold("1684",resultList[20]);

        // QString Longth06 =resultList[21];
        // QString LeftAngle06 =resultList[22];
        // QString RightAngle06 =resultList[23];
        // QString Count06 =resultList[24];

        write_modbus_rtu_Hold_F("1610",resultList[21]);
        write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[22].toDouble()));
        write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[23].toDouble()));
        write_modbus_rtu_Hold("1685",resultList[24]);

        // QString Longth07 =resultList[25];
        // QString LeftAngle07 =resultList[26];
        // QString RightAngle07 =resultList[27];
        // QString Count07 =resultList[28];

        write_modbus_rtu_Hold_F("1612",resultList[25]);
        write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[26].toDouble()));
        write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[27].toDouble()));
        write_modbus_rtu_Hold("1686",resultList[28]);

        // QString Longth08 =resultList[29];
        // QString LeftAngle08 =resultList[30];
        // QString RightAngle08 =resultList[31];
        // QString Count08 =resultList[32];

        write_modbus_rtu_Hold_F("1614",resultList[29]);
        write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[30].toDouble()));
        write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[31].toDouble()));
        write_modbus_rtu_Hold("1687",resultList[32]);

        // QString Longth09 =resultList[33];
        // QString LeftAngle09 =resultList[34];
        // QString RightAngle09 =resultList[35];
        // QString Count09 =resultList[36];

        write_modbus_rtu_Hold_F("1616",resultList[33]);
        write_modbus_rtu_Hold("1656",QString("%1").arg(resultList[34].toDouble()));
        write_modbus_rtu_Hold("1657",QString("%1").arg(resultList[35].toDouble()));
        write_modbus_rtu_Hold("1688",resultList[36]);

        // QString Longth10 =resultList[37];
        // QString LeftAngle10 =resultList[38];
        // QString RightAngle10 =resultList[39];
        // QString Count10 =resultList[40];

        write_modbus_rtu_Hold_F("1618",resultList[37]);
        write_modbus_rtu_Hold("1658",QString("%1").arg(resultList[38].toDouble()));
        write_modbus_rtu_Hold("1659",QString("%1").arg(resultList[39].toDouble()));
        write_modbus_rtu_Hold("1689",resultList[40]);

        /////////   11  //////
        write_modbus_rtu_Hold_F("1620",resultList[41]);
        write_modbus_rtu_Hold("1660",QString("%1").arg(resultList[42].toDouble()));
        write_modbus_rtu_Hold("1661",QString("%1").arg(resultList[43].toDouble()));
        write_modbus_rtu_Hold("1690",resultList[44]);
        /////////   12  //////
        write_modbus_rtu_Hold_F("1622",resultList[45]);
        write_modbus_rtu_Hold("1662",QString("%1").arg(resultList[46].toDouble()));
        write_modbus_rtu_Hold("1663",QString("%1").arg(resultList[47].toDouble()));
        write_modbus_rtu_Hold("1691",resultList[48]);
        /////////   13  //////
        write_modbus_rtu_Hold_F("1624",resultList[49]);
        write_modbus_rtu_Hold("1664",QString("%1").arg(resultList[50].toDouble()));
        write_modbus_rtu_Hold("1665",QString("%1").arg(resultList[51].toDouble()));
        write_modbus_rtu_Hold("1692",resultList[52]);
        /////////   14  //////
        write_modbus_rtu_Hold_F("1626",resultList[53]);
        write_modbus_rtu_Hold("1666",QString("%1").arg(resultList[54].toDouble()));
        write_modbus_rtu_Hold("1667",QString("%1").arg(resultList[55].toDouble()));
        write_modbus_rtu_Hold("1693",resultList[56]);
        /////////   15  //////
        write_modbus_rtu_Hold_F("1628",resultList[57]);
        write_modbus_rtu_Hold("1668",QString("%1").arg(resultList[58].toDouble()));
        write_modbus_rtu_Hold("1669",QString("%1").arg(resultList[59].toDouble()));
        write_modbus_rtu_Hold("1694",resultList[60]);
        /////////   16  //////
        write_modbus_rtu_Hold_F("1630",resultList[61]);
        write_modbus_rtu_Hold("1670",QString("%1").arg(resultList[62].toDouble()));
        write_modbus_rtu_Hold("1671",QString("%1").arg(resultList[63].toDouble()));
        write_modbus_rtu_Hold("1695",resultList[64]);
        /////////   17  //////
        write_modbus_rtu_Hold_F("1632",resultList[65]);
        write_modbus_rtu_Hold("1672",QString("%1").arg(resultList[66].toDouble()));
        write_modbus_rtu_Hold("1673",QString("%1").arg(resultList[67].toDouble()));
        write_modbus_rtu_Hold("1696",resultList[68]);
        /////////   18  //////
        write_modbus_rtu_Hold_F("1634",resultList[69]);
        write_modbus_rtu_Hold("1674",QString("%1").arg(resultList[70].toDouble()));
        write_modbus_rtu_Hold("1675",QString("%1").arg(resultList[71].toDouble()));
        write_modbus_rtu_Hold("1697",resultList[72]);
        /////////   19  //////
        write_modbus_rtu_Hold_F("1636",resultList[73]);
        write_modbus_rtu_Hold("1676",QString("%1").arg(resultList[74].toDouble()));
        write_modbus_rtu_Hold("1677",QString("%1").arg(resultList[75].toDouble()));
        write_modbus_rtu_Hold("1698",resultList[76]);
        /////////   20  //////
        write_modbus_rtu_Hold_F("1638",resultList[77]);
        write_modbus_rtu_Hold("1678",QString("%1").arg(resultList[78].toDouble()));
        write_modbus_rtu_Hold("1679",QString("%1").arg(resultList[79].toDouble()));
        write_modbus_rtu_Hold("1699",resultList[80]);

        break;
    }
    case 2:
    {
        qDebug()<<"触发 画门窗二维码 数据解析";

        // qDebug()<<"全部数据:"<<scanResult;

        QStringList middle = scanResult.split(';');

        qDebug()<<"中间数据 1 :"<<middle[0];
        qDebug()<<"中间数据 2 :"<<middle[1];

        // QStringList mid = QString(scanResult).split(';');
        // QString result = mid[1];

        // qDebug()<<"中间处理"<<mid[0];
        // qDebug()<<"中间处理"<<mid[1];
        QStringList resultList = QStringList(middle[1].split(','));
        // 计算有效数据组数
        int lineCount = resultList.count()/4;

        // int lineCount = 0;

        switch(lineCount)
        {
        case 1:     // 有效数据长度 为 1 组
        {
            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3].split("\r").at(0));

            write_modbus_rtu_Hold_F("1602","");
            write_modbus_rtu_Hold("1642","");
            write_modbus_rtu_Hold("1643","");
            write_modbus_rtu_Hold("1681","");

            write_modbus_rtu_Hold_F("1604","");
            write_modbus_rtu_Hold("1644","");
            write_modbus_rtu_Hold("1645","");
            write_modbus_rtu_Hold("1682","");

            write_modbus_rtu_Hold_F("1606","");
            write_modbus_rtu_Hold("1646","");
            write_modbus_rtu_Hold("1647","");
            write_modbus_rtu_Hold("1683","");

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 1 组 ";

            break;
        }
        case 2:   // 有效数据长度 为 2 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);
            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7].split("\r").at(0));

            write_modbus_rtu_Hold_F("1604","");
            write_modbus_rtu_Hold("1644","");
            write_modbus_rtu_Hold("1645","");
            write_modbus_rtu_Hold("1682","");

            write_modbus_rtu_Hold_F("1606","");
            write_modbus_rtu_Hold("1646","");
            write_modbus_rtu_Hold("1647","");
            write_modbus_rtu_Hold("1683","");

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 2 组 ";

            break;
        }
        case 3:   // 有效数据长度 为 3 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[11].split("\r").at(0));

            write_modbus_rtu_Hold_F("1606","");
            write_modbus_rtu_Hold("1646","");
            write_modbus_rtu_Hold("1647","");
            write_modbus_rtu_Hold("1683","");

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 3 组 ";

            break;
        }
        case 4:  // 有效数据长度 为 4 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15].split("\r").at(0));

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 4 组 ";

            break;
        }
        case 5:   // 有效数据长度 为 5 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15]);

            write_modbus_rtu_Hold_F("1608",resultList[16]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[18].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[19].split("\r").at(0));

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 5 组 ";

            break;
        }
        case 6:  // 有效数据长度 为 6 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15]);

            write_modbus_rtu_Hold_F("1608",resultList[16]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[18].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[19]);

            write_modbus_rtu_Hold_F("1610",resultList[20]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[21].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[22].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[23].split("\r").at(0));

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 7:   // 有效数据长度 为 7 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15].split("\r").at(0));

            write_modbus_rtu_Hold_F("1608",resultList[16]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[18].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[19]);

            write_modbus_rtu_Hold_F("1610",resultList[20]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[21].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[22].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[23]);

            write_modbus_rtu_Hold_F("1612",resultList[24]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[25].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[27].split("\r").at(0));

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 8:   // 有效数据长度 为 8 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15].split("\r").at(0));

            write_modbus_rtu_Hold_F("1608",resultList[16]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[18].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[19]);

            write_modbus_rtu_Hold_F("1610",resultList[20]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[21].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[22].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[23]);

            write_modbus_rtu_Hold_F("1612",resultList[24]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[25].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[27]);

            write_modbus_rtu_Hold_F("1614",resultList[28]);
            write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[29].toDouble()));
            write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[30].toDouble()));
            write_modbus_rtu_Hold("1687",resultList[31].split("\r").at(0));

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 9:   // 有效数据长度 为 9 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15].split("\r").at(0));

            write_modbus_rtu_Hold_F("1608",resultList[16]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[18].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[19]);

            write_modbus_rtu_Hold_F("1610",resultList[20]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[21].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[22].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[23]);

            write_modbus_rtu_Hold_F("1612",resultList[24]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[25].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[27]);

            write_modbus_rtu_Hold_F("1614",resultList[28]);
            write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[29].toDouble()));
            write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[30].toDouble()));
            write_modbus_rtu_Hold("1687",resultList[31]);

            write_modbus_rtu_Hold_F("1616",resultList[32]);
            write_modbus_rtu_Hold("1656",QString("%1").arg(resultList[33].toDouble()));
            write_modbus_rtu_Hold("1657",QString("%1").arg(resultList[34].toDouble()));
            write_modbus_rtu_Hold("1688",resultList[35].split("\r").at(0));

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 10:   // 有效数据长度 为 10 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[3]);

            write_modbus_rtu_Hold_F("1602",resultList[4]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[6].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[7]);

            write_modbus_rtu_Hold_F("1604",resultList[8]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[9].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[10].toDouble()));
            write_modbus_rtu_Hold("1682",resultList[11]);

            write_modbus_rtu_Hold_F("1606",resultList[12]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[13].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[15].split("\r").at(0));

            write_modbus_rtu_Hold_F("1608",resultList[16]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[18].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[19]);

            write_modbus_rtu_Hold_F("1610",resultList[20]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[21].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[22].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[23]);

            write_modbus_rtu_Hold_F("1612",resultList[24]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[25].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[27]);

            write_modbus_rtu_Hold_F("1614",resultList[28]);
            write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[29].toDouble()));
            write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[30].toDouble()));
            write_modbus_rtu_Hold("1687",resultList[31]);

            write_modbus_rtu_Hold_F("1616",resultList[32]);
            write_modbus_rtu_Hold("1656",QString("%1").arg(resultList[33].toDouble()));
            write_modbus_rtu_Hold("1657",QString("%1").arg(resultList[34].toDouble()));
            write_modbus_rtu_Hold("1688",resultList[35]);

            write_modbus_rtu_Hold_F("1618",resultList[36]);
            write_modbus_rtu_Hold("1658",QString("%1").arg(resultList[37].toDouble()));
            write_modbus_rtu_Hold("1659",QString("%1").arg(resultList[38].toDouble()));
            write_modbus_rtu_Hold("1689",resultList[39].split("\r").at(0));
            break;
        }
        default:
            break;
        }

        /////////   11  //////
        write_modbus_rtu_Hold_F("1620","0");
        write_modbus_rtu_Hold("1660","0");
        write_modbus_rtu_Hold("1661","0");
        write_modbus_rtu_Hold("1690","0");
        /////////   12  //////
        write_modbus_rtu_Hold_F("1622","0");
        write_modbus_rtu_Hold("1662","0");
        write_modbus_rtu_Hold("1663","0");
        write_modbus_rtu_Hold("1691","0");
        /////////   13  //////
        write_modbus_rtu_Hold_F("1624","0");
        write_modbus_rtu_Hold("1664","0");
        write_modbus_rtu_Hold("1665","0");
        write_modbus_rtu_Hold("1692","0");
        /////////   14  //////
        write_modbus_rtu_Hold_F("1626","0");
        write_modbus_rtu_Hold("1666","0");
        write_modbus_rtu_Hold("1667","0");
        write_modbus_rtu_Hold("1693","0");
        /////////   15  //////
        write_modbus_rtu_Hold_F("1628","0");
        write_modbus_rtu_Hold("1668","0");
        write_modbus_rtu_Hold("1669","0");
        write_modbus_rtu_Hold("1694","0");
        /////////   16  //////
        write_modbus_rtu_Hold_F("1630","0");
        write_modbus_rtu_Hold("1670","0");
        write_modbus_rtu_Hold("1671","0");
        write_modbus_rtu_Hold("1695","0");
        /////////   17  //////
        write_modbus_rtu_Hold_F("1632","0");
        write_modbus_rtu_Hold("1672","0");
        write_modbus_rtu_Hold("1673","0");
        write_modbus_rtu_Hold("1696","0");
        /////////   18  //////
        write_modbus_rtu_Hold_F("1634","0");
        write_modbus_rtu_Hold("1674","0");
        write_modbus_rtu_Hold("1675","0");
        write_modbus_rtu_Hold("1697","0");
        /////////   19  //////
        write_modbus_rtu_Hold_F("1636","0");
        write_modbus_rtu_Hold("1676","0");
        write_modbus_rtu_Hold("1677","0");
        write_modbus_rtu_Hold("1698","0");
        /////////   20  //////
        write_modbus_rtu_Hold_F("1638","0");
        write_modbus_rtu_Hold("1678","0");
        write_modbus_rtu_Hold("1679","0");
        write_modbus_rtu_Hold("1699","0");

        break;
    }
    case 3:
    {
        qDebug()<<"触发 创品二维码 数据解析";
        QStringList resultList = scanResult.split(",");

        int lineCount = resultList.count()/3;
        qDebug()<<"有效数据长度 "<< lineCount << "组";

        for(int i = 0 ; i< resultList.count() ; ++i)
        {
            qDebug()<<" "<<resultList[i];
        }

        switch(lineCount)
        {
        case 1:     // 有效数据长度 为 1 组
        {
            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[1].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1].split("\r").at(0));

            write_modbus_rtu_Hold_F("1602","");
            write_modbus_rtu_Hold("1642","");
            write_modbus_rtu_Hold("1643","");
            write_modbus_rtu_Hold("1681","");

            write_modbus_rtu_Hold_F("1604","");
            write_modbus_rtu_Hold("1644","");
            write_modbus_rtu_Hold("1645","");
            write_modbus_rtu_Hold("1682","");

            write_modbus_rtu_Hold_F("1606","");
            write_modbus_rtu_Hold("1646","");
            write_modbus_rtu_Hold("1647","");
            write_modbus_rtu_Hold("1683","");

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 1 组 ";

            break;
        }
        case 2:   // 有效数据长度 为 2 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4].split("\r").at(0));

            write_modbus_rtu_Hold_F("1604","");
            write_modbus_rtu_Hold("1644","");
            write_modbus_rtu_Hold("1645","");
            write_modbus_rtu_Hold("1682","");

            write_modbus_rtu_Hold_F("1606","");
            write_modbus_rtu_Hold("1646","");
            write_modbus_rtu_Hold("1647","");
            write_modbus_rtu_Hold("1683","");

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 2 组 ";

            break;
        }
        case 3:   // 有效数据长度 为 3 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7].split("\r").at(0));

            write_modbus_rtu_Hold_F("1606","");
            write_modbus_rtu_Hold("1646","");
            write_modbus_rtu_Hold("1647","");
            write_modbus_rtu_Hold("1683","");

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 3 组 ";

            break;
        }
        case 4:  // 有效数据长度 为 4 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10].split("\r").at(0));

            write_modbus_rtu_Hold_F("1608","");
            write_modbus_rtu_Hold("1648","");
            write_modbus_rtu_Hold("1649","");
            write_modbus_rtu_Hold("1684","");

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 4 组 ";

            break;
        }
        case 5:   // 有效数据长度 为 5 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10]);

            write_modbus_rtu_Hold_F("1608",resultList[12]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[13].split("\r").at(0));

            write_modbus_rtu_Hold_F("1610","");
            write_modbus_rtu_Hold("1650","");
            write_modbus_rtu_Hold("1651","");
            write_modbus_rtu_Hold("1685","");

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            qDebug()<<"当前有效数据长度为 5 组 ";

            break;
        }
        case 6:  // 有效数据长度 为 6 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10]);

            write_modbus_rtu_Hold_F("1608",resultList[12]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[13].split("\r").at(0));

            write_modbus_rtu_Hold_F("1610",resultList[15]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[16].split("\r").at(0));

            write_modbus_rtu_Hold_F("1612","");
            write_modbus_rtu_Hold("1652","");
            write_modbus_rtu_Hold("1653","");
            write_modbus_rtu_Hold("1686","");

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 7:   // 有效数据长度 为 7 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10]);

            write_modbus_rtu_Hold_F("1608",resultList[12]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[13]);

            write_modbus_rtu_Hold_F("1610",resultList[15]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[16]);

            write_modbus_rtu_Hold_F("1612",resultList[18]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[19].split("\r").at(0));

            write_modbus_rtu_Hold_F("1614","");
            write_modbus_rtu_Hold("1654","");
            write_modbus_rtu_Hold("1655","");
            write_modbus_rtu_Hold("1687","");

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 8:   // 有效数据长度 为 8 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10]);

            write_modbus_rtu_Hold_F("1608",resultList[12]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[13]);

            write_modbus_rtu_Hold_F("1610",resultList[15]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[16]);

            write_modbus_rtu_Hold_F("1612",resultList[18]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[19]);

            write_modbus_rtu_Hold_F("1614",resultList[21]);
            write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[23].toDouble()));
            write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[23].toDouble()));
            write_modbus_rtu_Hold("1687",resultList[22].split("\r").at(0));

            write_modbus_rtu_Hold_F("1616","");
            write_modbus_rtu_Hold("1656","");
            write_modbus_rtu_Hold("1657","");
            write_modbus_rtu_Hold("1688","");

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 9:   // 有效数据长度 为 9 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10]);

            write_modbus_rtu_Hold_F("1608",resultList[12]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[13]);

            write_modbus_rtu_Hold_F("1610",resultList[15]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[16]);

            write_modbus_rtu_Hold_F("1612",resultList[18]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[19]);

            write_modbus_rtu_Hold_F("1614",resultList[21]);
            write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[23].toDouble()));
            write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[23].toDouble()));
            write_modbus_rtu_Hold("1687",resultList[22]);

            write_modbus_rtu_Hold_F("1616",resultList[24]);
            write_modbus_rtu_Hold("1656",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1657",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1688",resultList[25].split("\r").at(0));

            write_modbus_rtu_Hold_F("1618","");
            write_modbus_rtu_Hold("1658","");
            write_modbus_rtu_Hold("1659","");
            write_modbus_rtu_Hold("1689","");

            break;
        }
        case 10:   // 有效数据长度 为 10 组
        {

            write_modbus_rtu_Hold_F("1600",resultList[0]);
            write_modbus_rtu_Hold("1640",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1641",QString("%1").arg(resultList[2].toDouble()));
            write_modbus_rtu_Hold("1680",resultList[1]);

            write_modbus_rtu_Hold_F("1602",resultList[3]);
            write_modbus_rtu_Hold("1642",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1643",QString("%1").arg(resultList[5].toDouble()));
            write_modbus_rtu_Hold("1681",resultList[4]);

            write_modbus_rtu_Hold_F("1604",resultList[6]);
            write_modbus_rtu_Hold("1644",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1645",QString("%1").arg(resultList[8].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[7]);

            write_modbus_rtu_Hold_F("1606",resultList[9]);
            write_modbus_rtu_Hold("1646",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1647",QString("%1").arg(resultList[11].toDouble()));
            write_modbus_rtu_Hold("1683",resultList[10]);

            write_modbus_rtu_Hold_F("1608",resultList[12]);
            write_modbus_rtu_Hold("1648",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1649",QString("%1").arg(resultList[14].toDouble()));
            write_modbus_rtu_Hold("1684",resultList[13]);

            write_modbus_rtu_Hold_F("1610",resultList[15]);
            write_modbus_rtu_Hold("1650",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1651",QString("%1").arg(resultList[17].toDouble()));
            write_modbus_rtu_Hold("1685",resultList[16]);

            write_modbus_rtu_Hold_F("1612",resultList[18]);
            write_modbus_rtu_Hold("1652",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1653",QString("%1").arg(resultList[20].toDouble()));
            write_modbus_rtu_Hold("1686",resultList[19]);

            write_modbus_rtu_Hold_F("1614",resultList[21]);
            write_modbus_rtu_Hold("1654",QString("%1").arg(resultList[23].toDouble()));
            write_modbus_rtu_Hold("1655",QString("%1").arg(resultList[23].toDouble()));
            write_modbus_rtu_Hold("1687",resultList[22]);

            write_modbus_rtu_Hold_F("1616",resultList[24]);
            write_modbus_rtu_Hold("1656",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1657",QString("%1").arg(resultList[26].toDouble()));
            write_modbus_rtu_Hold("1688",resultList[25]);

            write_modbus_rtu_Hold_F("1618",resultList[27]);
            write_modbus_rtu_Hold("1658",QString("%1").arg(resultList[29].toDouble()));
            write_modbus_rtu_Hold("1659",QString("%1").arg(resultList[29].toDouble()));
            write_modbus_rtu_Hold("1689",resultList[28].split("\r").at(0));
            break;
        }
        default:
            break;
        }


        break;
    }

    default:
        break;
    }

    write_modbus_rtu_Coils("142","1");
    write_modbus_rtu_Coils("142","0");

}



// 读取PLC各项参数
void ConnectManager::read_PLC_Parameters_Slots()
{
    // qDebug()<<"定时器触发";

    m_Modbus->read_modbus_rtu_Coils();

    m_Modbus->read_modbus_rtu_DiscreteInputs();

    m_Modbus->read_modbus_rtu_HoldingRegisters();

    // if(m_Modbus->AutoPrintRun){     //  自动打印
    //     m_Modbus->write_modbus_rtu_Coils("135","false");
    //     qDebug()<<"启动打印！！！！！";
    //     qDebug()<<"当前代加工料长值: "<<m_Modbus->workValue;
    //     qDebug()<<"当前左锯反馈值: "<<m_Modbus->leftSawAngleBack;
    //     qDebug()<<"当前右锯反馈值: "<<m_Modbus->rightSawAngleBack;


    // }
    // else{
    //     qDebug()<<"停止打印";
    // }




    // 读取 报警参数
    // m_Modbus->readWarningSignal();
    setScramWarningSig(m_Modbus->scramWarnSig);
    setServoWarningSig(m_Modbus->servoWarnSig);
    setF_LimitWarningSig(m_Modbus->F_LimitWarnSig);
    setR_LimitWarningSig(m_Modbus->R_LimitWarnSig);

    // 读取报警信息
    readNewWarningData();

    // 读取 - 弹窗报警信息
    // m_Modbus->read_PopUp_Warning_Message_state();
    setZeroLocationFailed(m_Modbus->ZeroLocationFaled);
    setServoReady(m_Modbus->ServoReady);
    setReadLocationFailed(m_Modbus->ReadLocationFailed);
    setReadLocationOver(m_Modbus->ReadLocationOver);
    setForbidRun_NotFindZero(m_Modbus->ForbidRun_NotFindZero);
    setForbidLeftRun(m_Modbus->ForbidLeftRun);
    setForbidRightRun(m_Modbus->ForbidRightRun);
    setCurrentLocationEqualLocation(m_Modbus->CurrentLocationEqualLocation);
    setNotChooseMechine(m_Modbus->NotChooseMechine);
    setWorkingForbidImpact(m_Modbus->WorkingForbidImpact);

    setSawErrForbidImpact(m_Modbus->SawErrForbidImpact);
    setCurrentSectionesWorked(m_Modbus->CurrentSectionesWorked);
    setSawNotRunForbidOut(m_Modbus->SawNotRunForbidOut);
    setNotImpactForbidOut(m_Modbus->NotImpactForbidOut);
    setCurrentLocationForbidOut(m_Modbus->CurrentLocationForbidOut);
    setAutoPrintRun(m_Modbus->AutoPrintRun);
    setSetExtraShortLessCDLC(m_Modbus->SetExtraShortLessCDLC);
    setSawInPlacesSignalErr(m_Modbus->SawInPlaceSignalErr);
    setLocationZeroOver(m_Modbus->LocationZeroOver);
    setForbidRightMechineMove(m_Modbus->ForbidRightMechineMove);
    setExtraLongLocation(m_Modbus->ExtraLongLocation);

    // setChangeSawMethod(m_Modbus->ChangeSawMethod);
    setErrCorrected(m_Modbus->ErrCorrected);
    setForbid_45NB(m_Modbus->Forbid_45NB);
    setExtraShortOrigin(m_Modbus->ExtraShortOrigin);
    setCleanBatteryWarning(m_Modbus->CleanBatteryWarning);
    setCleanBatteryDone(m_Modbus->CleanBatteryDone);
    setQ_TL_Err(m_Modbus->Q_TL_Err);
    setZ_TL_Err(m_Modbus->Z_TL_Err);
    setH_TL_Err(m_Modbus->H_TL_Err);

    // m_Modbus->read_Mechine_Running_Message_state();
    setExtraLong_Locating(m_Modbus->ExtraLong_Locating);
    setLong_WorkState(m_Modbus->Long_WorkState);
    setShort_WorkState(m_Modbus->Short_WorkState);
    setJM_WorkState(m_Modbus->JM_WorkState);
    setMechineRunningState(m_Modbus->MechineRunningState);
    setFindZeroState(m_Modbus->FindZeroState);
    setZeroGoingState(m_Modbus->ZeroGoingState);


    switch(pageNumber())
    {
    case 1:
        // qDebug()<<"当前位于：  加工界面";

        // m_Modbus->read_GJTIME_Mode_State();
        setGJTIME_Mode(m_Modbus->GJTIME_Mode);
        // 拉手功能是否存在
        // m_Modbus->read_LS_Exist_value();
        setLS_Exist(m_Modbus->LS_Exist);
        // 45度专切
        // m_Modbus->read_Angle45_Mode_value();
        setAngle45_Mode(m_Modbus->Angle45_Mode);
        // 打印机有无
        // m_Modbus->read_Printer_Exist_value();
        setPrinter_Exist(m_Modbus->Printer_Exist);
        // 伺服类型
        // m_Modbus->read_Servo_Mode_value();
        setServo_Mode(m_Modbus->Servo_Mode);
        // 托料架有无
        // m_Modbus->read_TLJ_Exist_value();
        setTLJ_Exist(m_Modbus->TLJ_Exist);
        // 锯片选择有无
        // m_Modbus->read_SawChoose_Mode_State();
        setSawChoose_Mode(m_Modbus->SawChoose_Mode);
        // 旋钮功能
        // m_Modbus->read_Knob_Program_value();
        setKnob_Program(m_Modbus->Knob_Program);
        // 自动测高功能
        // m_Modbus->read_Auto_Observe_Exist_value();
        setAutoObserve_Exist(m_Modbus->AutoObserve_Exist);
        // 限位开关
        // m_Modbus->read_Limit_Btn_value();
        setLimitBtn_Mode(m_Modbus->LimitBtn_Mode);
        // 读取内外摆模式 内摆1 外摆0
        // m_Modbus->read_NB_WB_value();
        setNBWB_Mode(m_Modbus->NBWB_Mode);
        // 机头旋钮常开
        // m_Modbus->read_JT_Knob_Mode_value();
        setJT_Knob_Mode(m_Modbus->JT_Knob_Mode);
        // 电磁阀断电不断电
        // m_Modbus->reaed_DCF_Power_Mode_value();
        setDCF_Power_Mode(m_Modbus->DCF_Power_Mode);
        // 急停按钮模式
        // m_Modbus->read_Scram_Mode_value();
        setScram_Mode(m_Modbus->Scram_Mode);
        // 编码器位数
        // m_Modbus->read_Encoder_Mode_value();
        setEncoder_Mode(m_Modbus->Encoder_Mode);
        // 伺服报警模式
        // m_Modbus->read_Servo_Warning_Mode_value();
        setServo_Warning_Mode(m_Modbus->Servo_Warning_Mode);

        // 料高设定值
        setLG_value(m_Modbus->LG_value);
        // 当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // 读取X轴当前位置
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        // 读取当前段数
        setCurrentSectiones(m_Modbus->CurrentSectiones);
        // 读取料长设定
        setLC_value(m_Modbus->LC_value);
        // 读取段数设定
        setSection_Set(m_Modbus->sectionSetting);
        // 读取料高测量值
        m_Modbus->read_LGObserve_value();
        setLG_observe(m_Modbus->LGObserve);
        // 左锯角度反馈
        setLeftSawAngle(m_Modbus->leftSawAngleBack);
        // 右锯角度反馈
        setRightSawAngle(m_Modbus->rightSawAngleBack);
        // 旋钮模式
        setKnobMode(m_Modbus->knobMode);
        // 读取左锯片前位
        setLeftSawQW(m_Modbus->leftSawQW );
        // 读取左锯片后位
        setLeftSawHW(m_Modbus->leftSawHW );
        // 读取右锯片前位
        setRightSawQW(m_Modbus->rightSawQW );
        // 读取右锯片后位
        setRightSawHW(m_Modbus->rightSawHW );
        // 料高测量中
        setLg_observe_state(m_Modbus->lg_observe_state);
        // 读取按钮状态
        setImpactState(m_Modbus->impactState);
        setSawState(m_Modbus->sawState);
        setGjState(m_Modbus->gjState);
        setProcess_UpLimit_DownLimit();
        // 45度专切
        setAngle45_Mode(m_Modbus->Angle45_Mode);
        break;
    case 2:
        // qDebug()<<"当前位于：  超长加工界面";
        // 读取当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // 读取X轴当前位置
        // m_Modbus->read_XAxisCurrentLocation_value();
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        // 读取当前段数
        // m_Modbus->read_CurrentSectiones_value();
        setCurrentSectiones(m_Modbus->CurrentSectiones);
        // 读取超长料长
        // m_Modbus->read_ExtraLong_LC_value();
        setExtraLong_LC(m_Modbus->ExtraLong_LC);
        // 读取机械坐标
        m_Modbus->read_MechineLocation_value();
        setMechineLocation(m_Modbus->MechineLocation);
        // 读取料高设定
        // m_Modbus->read_LG_value();
        setLG_value(m_Modbus->LG_value);
        // 读取 超长补偿
        m_Modbus->read_ExtraLongCompensate_value();
        setExtraLongCompensate(m_Modbus->ExtraLongCompensate);
        // 左锯角度反馈
        // m_Modbus->read_LeftSawAngle_Backvalue();
        setLeftSawAngle(m_Modbus->leftSawAngleBack);
        // 右锯角度反馈
        // m_Modbus->read_RightSawAngle_Backvalue();
        setRightSawAngle(m_Modbus->rightSawAngleBack );
        // 旋钮模式
        // m_Modbus->read_knobMode_value();
        setKnobMode(m_Modbus->knobMode);
        // 读取左锯片前位
        // m_Modbus->read_LeftSawQW_state();
        setLeftSawQW(m_Modbus->leftSawQW);
        // 读取左锯片后位
        // m_Modbus->read_LeftSawHW_state();
        setLeftSawHW(m_Modbus->leftSawHW );
        // 读取右锯片前位
        // m_Modbus->read_RightSawQW_state();
        setRightSawQW(m_Modbus->rightSawQW);
        // 读取右锯片后位
        // m_Modbus->read_RightSawHW_state();
        setRightSawHW(m_Modbus->rightSawHW);
        // 45度专切
        // m_Modbus->read_Angle45_Mode_value();
        setAngle45_Mode(m_Modbus->Angle45_Mode);
        // 计算超长料长上限和下限
        setExtraLong_UpLimit_DownLimit();
        break;
    case 3:
        // qDebug()<<"当前位于 : 超短加工界面";
        // 当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // X轴当前位置
        // m_Modbus->read_XAxisCurrentLocation_value();
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        // 当前段数
        // m_Modbus->read_CurrentSectiones_value();
        setCurrentSectiones(m_Modbus->CurrentSectiones);
        // 超短料长
        // m_Modbus->read_ExtraShort_LC_value();
        setExtraShort_LC(m_Modbus->ExtraShort_LC);
        // 料高设定
        // m_Modbus->read_LG_value();
        setLG_value(m_Modbus->LG_value);
        // 回拉距离
        m_Modbus->read_HL_Distance_value();
        setHL_Distance(m_Modbus->HL_Distance);
        // 超短补偿
        m_Modbus->read_ExtraShortCompensate_value();
        setExtraShortCompensate(m_Modbus->ExtraShortCompensate);
        // 左锯角度反馈
        // m_Modbus->read_LeftSawAngle_Backvalue();
        setLeftSawAngle(m_Modbus->leftSawAngleBack );
        // 右锯角度反馈
        // m_Modbus->read_RightSawAngle_Backvalue();
        setRightSawAngle(m_Modbus->rightSawAngleBack);
        // 旋钮模式
        // m_Modbus->read_knobMode_value();
        setKnobMode(m_Modbus->knobMode);
        // 读取左锯片前位
        // m_Modbus->read_LeftSawQW_state();
        setLeftSawQW(m_Modbus->leftSawQW );
        // 读取左锯片后位
        // m_Modbus->read_LeftSawHW_state();
        setLeftSawHW(m_Modbus->leftSawHW );
        // 读取右锯片前位
        // m_Modbus->read_RightSawQW_state();
        setRightSawQW(m_Modbus->rightSawQW );
        // 读取右锯片后位
        // m_Modbus->read_RightSawHW_state();
        setRightSawHW(m_Modbus->rightSawHW );
        // 读取原点值
        m_Modbus->read_Origin_value();
        setOriginValue(m_Modbus->OriginValue);
        // 读取内摆安全位置
        m_Modbus->read_NB_SafeLocation_value();
        setNB_SafeLocation(m_Modbus->NB_SafeLocation);
        // 45度专切
        // m_Modbus->read_Angle45_Mode_value();
        setAngle45_Mode(m_Modbus->Angle45_Mode);
        // 计算超短料长上限和下限
        setExtraShort_UpLimit_DownLimit();
        break;
    case 4:
        // qDebug()<<"当前位于 : 排料加工界面";
        // 当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // X轴当前位置
        // m_Modbus->read_XAxisCurrentLocation_value();
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        // m_Modbus->read_Knob_Location_value();
        setKnobMode(m_Modbus->knobMode);
        // 读取内外摆模式 内摆1 外摆0
        // m_Modbus->read_NB_WB_value();
        setNBWB_Mode(m_Modbus->NBWB_Mode);

        // 读取已切数量排料加工
        m_Modbus->read_Wokred_Count_PL_values();
        setWorkedCount01_PL(m_Modbus->workedCount01_PL);
        setWorkedCount02_PL(m_Modbus->workedCount02_PL);
        setWorkedCount03_PL(m_Modbus->workedCount03_PL);
        setWorkedCount04_PL(m_Modbus->workedCount04_PL);
        setWorkedCount05_PL(m_Modbus->workedCount05_PL);
        setWorkedCount06_PL(m_Modbus->workedCount06_PL);
        setWorkedCount07_PL(m_Modbus->workedCount07_PL);
        setWorkedCount08_PL(m_Modbus->workedCount08_PL);
        setWorkedCount09_PL(m_Modbus->workedCount09_PL);
        setWorkedCount10_PL(m_Modbus->workedCount10_PL);
        setWorkedCount11_PL(m_Modbus->workedCount11_PL);
        setWorkedCount12_PL(m_Modbus->workedCount12_PL);
        setWorkedCount13_PL(m_Modbus->workedCount13_PL);
        setWorkedCount14_PL(m_Modbus->workedCount14_PL);
        setWorkedCount15_PL(m_Modbus->workedCount15_PL);
        setWorkedCount16_PL(m_Modbus->workedCount16_PL);
        setWorkedCount17_PL(m_Modbus->workedCount17_PL);
        setWorkedCount18_PL(m_Modbus->workedCount18_PL);
        setWorkedCount19_PL(m_Modbus->workedCount19_PL);
        setWorkedCount20_PL(m_Modbus->workedCount20_PL);
        break;
    case 5:
        // qDebug()<<"当前位于 : 角码加工界面";
        // 当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // X轴当前位置
        // m_Modbus->read_XAxisCurrentLocation_value();
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        // 左锯角度反馈
        // m_Modbus->read_LeftSawAngle_Backvalue();
        setLeftSawAngle(m_Modbus->leftSawAngleBack);
        // 右锯角度反馈
        // m_Modbus->read_RightSawAngle_Backvalue();
        setRightSawAngle(m_Modbus->rightSawAngleBack);
        // 旋钮模式
        // m_Modbus->read_knobMode_value();
        setKnobMode(m_Modbus->knobMode);
        // 读取左锯片前位
        // m_Modbus->read_LeftSawQW_state();
        setLeftSawQW(m_Modbus->leftSawQW );
        // 读取左锯片后位
        // m_Modbus->read_LeftSawHW_state();
        setLeftSawHW(m_Modbus->leftSawHW);
        // 读取右锯片前位
        // m_Modbus->read_RightSawQW_state();
        setRightSawQW(m_Modbus->rightSawQW );
        // 读取右锯片后位
        // m_Modbus->read_RightSawHW_state();
        setRightSawHW(m_Modbus->rightSawHW);
        // 当前段数 - 角码界面
        // m_Modbus->read_CurrentSectiones_JM_value();
        setCurrentSectiones_JM(m_Modbus->currentSectiones_JM);
        // 累计段数
        // m_Modbus->read_WorkedSections_JM_value();
        setWorkedSectiones_JM(m_Modbus->workedSectiones_JM);
        // 读取角码最短料长
        // m_Modbus->read_MinLongth_JM_value();
        setMiniLongth_JM(m_Modbus->MiniLongth_JM);
        // 读取原料长度
        // m_Modbus->read_MaterialLongth_JM_value();
        setMaterialLong_JM(m_Modbus->MaterialLongth_JM);
        // 读取角码长度
        // m_Modbus->read_JMLongth_JM_value();
        setJMLongth_JM(m_Modbus->JMLongth_JM);
        // 读取角码段数
        // m_Modbus->read_JMSectiones_JM_value();
        setJMSectiones(m_Modbus->JMSectiones_JM);
        // 读取刀补
        // m_Modbus->read_DB_JM_value();
        setDB_JM(m_Modbus->DB_JM);
        // 读取角码料长错误
        // m_Modbus->read_JMLongthErr_JM_value();
        setJMLongthErr_JM(m_Modbus->JMLongthErr_JM);
        break;
    case 6:
        // qDebug()<<"当前位于：  管理界面";
        // 左锯角度反馈
        m_Modbus->read_LeftSawAngle_Backvalue();
        setLeftSawAngle(m_Modbus->leftSawAngleBack);
        // 右锯角度反馈
        m_Modbus->read_RightSawAngle_Backvalue();
        setRightSawAngle(m_Modbus->rightSawAngleBack);
        // 当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // 料高测量值
        // m_Modbus->read_LGObserve_value();
        setLG_observe(m_Modbus->LGObserve);
        // 料高测量中
        setLg_observe_state(m_Modbus->lg_observe_state);
        // m_Modbus->read_IO_Y0_Y25();
        // 读取 - 左电机
        setIO_Y2(m_Modbus->Y2);
        // 读取 - 右电机
        setIO_Y3(m_Modbus->Y3);
        // 读取 - 左摆角45
        setIO_Y4(m_Modbus->Y4);
        // 读取 - 左摆角90
        setIO_Y5(m_Modbus->Y5);
        // 读取 - 右摆角45
        setIO_Y6(m_Modbus->Y6);
        // 读取 - 右摆角90
        setIO_Y7(m_Modbus->Y7);
        // 读取 - 左压紧
        setIO_Y12(m_Modbus->Y12);
        // 读取 - 右压紧
        setIO_Y13(m_Modbus->Y13);
        // 读取 - 料高气缸
        setIO_Y14(m_Modbus->Y14);
        // 读取 - 左工进
        setIO_Y10(m_Modbus->Y10);
        // 读取 - 右工进
        setIO_Y11(m_Modbus->Y11);
        // 读取 - 拽料气缸
        setIO_Y21(m_Modbus->Y21);
        // 读取 - 左拉料压紧
        setIO_Y23(m_Modbus->Y23);
        // 原点值
        // m_Modbus->read_Origin_value();
        setOriginValue(m_Modbus->OriginValue);
        // 定位速度
        // m_Modbus->read_LocationSpeed_value();
        setLocationSpeed(m_Modbus->LocationSpeed);
        // 手动速度
        m_Modbus->read_ManualSpeed_value();
        setManualSpeed(m_Modbus->ManualSpeed);
        // 压紧动作时间
        // m_Modbus->read_ImpactTime_value();
        setImpactTime(m_Modbus->ImpactTime);
        // 左右吹气时间
        // m_Modbus->read_LR_Blow_Time_value();
        setLR_Blow_Time(m_Modbus->LR_Blow_Time);
        // 左锯工进时间
        // m_Modbus->read_LeftSaw_GJTime_value();
        setLeftSaw_GJTime(m_Modbus->LeftSaw_GJTime);
        // 右锯工进时间
        // m_Modbus->read_RightSaw_GJTime_value();
        setRightSaw_GJTime(m_Modbus->RightSaw_GJTime);
        // 双锯45度补偿
        m_Modbus->read_DoubleSaws45_Compensate_value();
        setDoubleSaws45_Compensate(m_Modbus->DoubleSaws45_Compensate);
        // 单独45度补偿
        // m_Modbus->read_SingleSaw45_Compensate_value();
        setSingleSaw45_Compensate(m_Modbus->SingleSaw45_Compensate);
        // 45度安全位置
        m_Modbus->read_45Safe_Distance_value();
        setSafeDistance(m_Modbus->safeDistance);
        // 料高检测时间
        // m_Modbus->read_LG_Detection_Time_value();
        setLG_Detection_Time(m_Modbus->LG_Detection_Time);
        // 料高磁尺当量
        // m_Modbus->read_LG_CC_DL_value();
        setLG_CC_DL(m_Modbus->LG_CC_DL);
        // 电磁阀断电延时
        // m_Modbus->read_DCF_OutageDelay_value();
        setDCF_OutageDelay(m_Modbus->DCF_OutageDelay);
        break;
    case 7:
        // qDebug()<<"当前位于 : 拉手定位界面";
        // 读取当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // 读取把手位置
        // m_Modbus->read_BS_Location_value();
        setLS_Location(m_Modbus->LS_Locatoin);
        // 读取把手位置补偿
        // m_Modbus->read_BS_LocationCompensate_value();
        setLS_LocationCompensate(m_Modbus->LS_LocationCompensate);
        // 读取把手宽度
        // m_Modbus->read_BS_Width_value();
        setLS_Width(m_Modbus->LS_Width);
        break;
    case 8:
        // qDebug()<<"当前位于 : 料高选择界面";
        // 料高设定值
        // m_Modbus->read_LG_value();
        setLG_value(m_Modbus->LG_value);
        break;
    case 9:
        // qDebug()<<"当前位于 : 网络料单界面";
        setWorked_Count01_QR(m_Modbus->Worked_Count01_QR);
        setWorked_Count02_QR(m_Modbus->Worked_Count02_QR);
        setWorked_Count03_QR(m_Modbus->Worked_Count03_QR);
        setWorked_Count04_QR(m_Modbus->Worked_Count04_QR);
        setWorked_Count05_QR(m_Modbus->Worked_Count05_QR);
        setWorked_Count06_QR(m_Modbus->Worked_Count06_QR);
        setWorked_Count07_QR(m_Modbus->Worked_Count07_QR);
        setWorked_Count08_QR(m_Modbus->Worked_Count08_QR);
        setWorked_Count09_QR(m_Modbus->Worked_Count09_QR);
        setWorked_Count10_QR(m_Modbus->Worked_Count10_QR);
        setWorked_Count11_QR(m_Modbus->Worked_Count11_QR);
        setWorked_Count12_QR(m_Modbus->Worked_Count12_QR);
        setWorked_Count13_QR(m_Modbus->Worked_Count13_QR);
        setWorked_Count14_QR(m_Modbus->Worked_Count14_QR);
        setWorked_Count15_QR(m_Modbus->Worked_Count15_QR);
        setWorked_Count16_QR(m_Modbus->Worked_Count16_QR);
        setWorked_Count17_QR(m_Modbus->Worked_Count17_QR);
        setWorked_Count18_QR(m_Modbus->Worked_Count18_QR);
        setWorked_Count19_QR(m_Modbus->Worked_Count19_QR);
        setWorked_Count20_QR(m_Modbus->Worked_Count20_QR);

        // 读取当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);

        // 读取料高设定
        // m_Modbus->read_LG_value();
        setLG_value(m_Modbus->LG_value);

        break;
    case 10:
        // qDebug()<<"当前位于 : 二维码料单界面";
        m_Modbus->reaed_M_Length_QR_values();
        setM_Length01_QR(m_Modbus->m_Length01_QR);
        setM_Length02_QR(m_Modbus->m_Length02_QR);
        setM_Length03_QR(m_Modbus->m_Length03_QR);
        setM_Length04_QR(m_Modbus->m_Length04_QR);
        setM_Length05_QR(m_Modbus->m_Length05_QR);
        setM_Length06_QR(m_Modbus->m_Length06_QR);
        setM_Length07_QR(m_Modbus->m_Length07_QR);
        setM_Length08_QR(m_Modbus->m_Length08_QR);
        setM_Length09_QR(m_Modbus->m_Length09_QR);
        setM_Length10_QR(m_Modbus->m_Length10_QR);
        setM_Length11_QR(m_Modbus->m_Length11_QR);
        setM_Length12_QR(m_Modbus->m_Length12_QR);
        setM_Length13_QR(m_Modbus->m_Length13_QR);
        setM_Length14_QR(m_Modbus->m_Length14_QR);
        setM_Length15_QR(m_Modbus->m_Length15_QR);
        setM_Length16_QR(m_Modbus->m_Length16_QR);
        setM_Length17_QR(m_Modbus->m_Length17_QR);
        setM_Length18_QR(m_Modbus->m_Length18_QR);
        setM_Length19_QR(m_Modbus->m_Length19_QR);
        setM_Length20_QR(m_Modbus->m_Length20_QR);

        // // m_Modbus->read_Left_Right_Angle_QR_values();
        setLeftAngle01_QR(m_Modbus->LeftAngle01_QR);
        setLeftAngle02_QR(m_Modbus->LeftAngle02_QR);
        setLeftAngle03_QR(m_Modbus->LeftAngle03_QR);
        setLeftAngle04_QR(m_Modbus->LeftAngle04_QR);
        setLeftAngle05_QR(m_Modbus->LeftAngle05_QR);
        setLeftAngle06_QR(m_Modbus->LeftAngle06_QR);
        setLeftAngle07_QR(m_Modbus->LeftAngle07_QR);
        setLeftAngle08_QR(m_Modbus->LeftAngle08_QR);
        setLeftAngle09_QR(m_Modbus->LeftAngle09_QR);
        setLeftAngle10_QR(m_Modbus->LeftAngle10_QR);
        setLeftAngle11_QR(m_Modbus->LeftAngle11_QR);
        setLeftAngle12_QR(m_Modbus->LeftAngle12_QR);
        setLeftAngle13_QR(m_Modbus->LeftAngle13_QR);
        setLeftAngle14_QR(m_Modbus->LeftAngle14_QR);
        setLeftAngle15_QR(m_Modbus->LeftAngle15_QR);
        setLeftAngle16_QR(m_Modbus->LeftAngle16_QR);
        setLeftAngle17_QR(m_Modbus->LeftAngle17_QR);
        setLeftAngle18_QR(m_Modbus->LeftAngle18_QR);
        setLeftAngle19_QR(m_Modbus->LeftAngle19_QR);
        setLeftAngle20_QR(m_Modbus->LeftAngle20_QR);

        setRightAngle01_QR(m_Modbus->RightAngle01_QR);
        setRightAngle02_QR(m_Modbus->RightAngle02_QR);
        setRightAngle03_QR(m_Modbus->RightAngle03_QR);
        setRightAngle04_QR(m_Modbus->RightAngle04_QR);
        setRightAngle05_QR(m_Modbus->RightAngle05_QR);
        setRightAngle06_QR(m_Modbus->RightAngle06_QR);
        setRightAngle07_QR(m_Modbus->RightAngle07_QR);
        setRightAngle08_QR(m_Modbus->RightAngle08_QR);
        setRightAngle09_QR(m_Modbus->RightAngle09_QR);
        setRightAngle10_QR(m_Modbus->RightAngle10_QR);
        setRightAngle11_QR(m_Modbus->RightAngle11_QR);
        setRightAngle12_QR(m_Modbus->RightAngle12_QR);
        setRightAngle13_QR(m_Modbus->RightAngle13_QR);
        setRightAngle14_QR(m_Modbus->RightAngle14_QR);
        setRightAngle15_QR(m_Modbus->RightAngle15_QR);
        setRightAngle16_QR(m_Modbus->RightAngle16_QR);
        setRightAngle17_QR(m_Modbus->RightAngle17_QR);
        setRightAngle18_QR(m_Modbus->RightAngle18_QR);
        setRightAngle19_QR(m_Modbus->RightAngle19_QR);
        setRightAngle20_QR(m_Modbus->RightAngle20_QR);

        // // m_Modbus->read_Count_QR_values();
        setCount01_QR(m_Modbus->Count01_QR);
        setCount02_QR(m_Modbus->Count02_QR);
        setCount03_QR(m_Modbus->Count03_QR);
        setCount04_QR(m_Modbus->Count04_QR);
        setCount05_QR(m_Modbus->Count05_QR);
        setCount06_QR(m_Modbus->Count06_QR);
        setCount07_QR(m_Modbus->Count07_QR);
        setCount08_QR(m_Modbus->Count08_QR);
        setCount09_QR(m_Modbus->Count09_QR);
        setCount10_QR(m_Modbus->Count10_QR);
        setCount11_QR(m_Modbus->Count11_QR);
        setCount12_QR(m_Modbus->Count12_QR);
        setCount13_QR(m_Modbus->Count13_QR);
        setCount14_QR(m_Modbus->Count14_QR);
        setCount15_QR(m_Modbus->Count15_QR);
        setCount16_QR(m_Modbus->Count16_QR);
        setCount17_QR(m_Modbus->Count17_QR);
        setCount18_QR(m_Modbus->Count18_QR);
        setCount19_QR(m_Modbus->Count19_QR);
        setCount20_QR(m_Modbus->Count20_QR);

        // m_Modbus->read_Worked_Count_QR_values();
        setWorked_Count01_QR(m_Modbus->Worked_Count01_QR);
        setWorked_Count02_QR(m_Modbus->Worked_Count02_QR);
        setWorked_Count03_QR(m_Modbus->Worked_Count03_QR);
        setWorked_Count04_QR(m_Modbus->Worked_Count04_QR);
        setWorked_Count05_QR(m_Modbus->Worked_Count05_QR);
        setWorked_Count06_QR(m_Modbus->Worked_Count06_QR);
        setWorked_Count07_QR(m_Modbus->Worked_Count07_QR);
        setWorked_Count08_QR(m_Modbus->Worked_Count08_QR);
        setWorked_Count09_QR(m_Modbus->Worked_Count09_QR);
        setWorked_Count10_QR(m_Modbus->Worked_Count10_QR);
        setWorked_Count11_QR(m_Modbus->Worked_Count11_QR);
        setWorked_Count12_QR(m_Modbus->Worked_Count12_QR);
        setWorked_Count13_QR(m_Modbus->Worked_Count13_QR);
        setWorked_Count14_QR(m_Modbus->Worked_Count14_QR);
        setWorked_Count15_QR(m_Modbus->Worked_Count15_QR);
        setWorked_Count16_QR(m_Modbus->Worked_Count16_QR);
        setWorked_Count17_QR(m_Modbus->Worked_Count17_QR);
        setWorked_Count18_QR(m_Modbus->Worked_Count18_QR);
        setWorked_Count19_QR(m_Modbus->Worked_Count19_QR);
        setWorked_Count20_QR(m_Modbus->Worked_Count20_QR);

        // qDebug()<<"当前序号 :  "<<QR_CurrentOrder();
        setQR_CurrentOrder(m_Modbus->workCurrentOrder);

        // 压紧按钮状态
        setImpactState(m_Modbus->impactState);
        // 工进按钮状态
        setGjState(m_Modbus->gjState);

        // 读取当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);

        // 读取料高设定
        // m_Modbus->read_LG_value();
        setLG_value(m_Modbus->LG_value);

        m_Modbus->read_M_172_Coils();
        m_Modbus->read_M_46_Coils();
        m_Modbus->read_D_156_Holdregisters();

        setM_172(m_Modbus->m_172);
        if(M_172() == 1)
        {
            order_Clicked_Write_Data_Into_PLC();
        }



        // 料单跳转问题解决
        // 172复位
        // m_Modbus->write_modbus_rtu_Coils("172",0);

        setM_46(m_Modbus->m_46);
        setD_156(m_Modbus->d_156);


        break;
    case 11:
        // qDebug()<<"当前位于 : IO监控界面";
        setIO_X0(m_Modbus->X0);
        // 读取 - 磁尺B相
        setIO_X1(m_Modbus->X1);
        // 读取 - 左机头旋转
        setIO_X2(m_Modbus->X2);
        // 读取 - 右机头旋转
        setIO_X3(m_Modbus->X3);
        // 读取 - 急停按钮
        setIO_X5(m_Modbus->X5);
        // 读取 - 压紧按钮
        setIO_X6(m_Modbus->X6);
        // 读取 - 工进按钮
        setIO_X7(m_Modbus->X7);
        // 读取 - 锯片启停
        setIO_X10(m_Modbus->X10);
        // 读取 - 原点复位
        setIO_X11(m_Modbus->X11);
        // 读取左锯片后位
        setLeftSawHW(m_Modbus->leftSawHW);
        // 读取右锯片后位
        setRightSawHW(m_Modbus->rightSawHW);
        // 读取左锯片前位
        setLeftSawQW(m_Modbus->leftSawQW );
        // 读取右锯片前位
        setRightSawQW(m_Modbus->rightSawQW );
        // 读取 - 伺服报警
        setIO_X16(m_Modbus->X16);
        // 读取 - 伺服准备好
        setIO_X17(m_Modbus->X17);
        // 读取 - X轴原点
        setIO_X20(m_Modbus->X20);
        // 读取 - X轴正限位
        setIO_X21(m_Modbus->X21);
        // 读取 - X轴负限位
        setIO_X22(m_Modbus->X22);
        // 读取 - 前托退到位
        setIO_X23(m_Modbus->X23);
        // 读取 - 中托退到位
        setIO_X24(m_Modbus->X24);
        // 读取 - 后托退到位
        setIO_X25(m_Modbus->X25);

        setIO_Y0(m_Modbus->Y0);
        // 读取 方向
        setIO_Y1(m_Modbus->Y1);
        // 读取 - 左电机
        setIO_Y2(m_Modbus->Y2);
        // 读取 - 右电机
        setIO_Y3(m_Modbus->Y3);
        // 读取 - 左45度阀
        setIO_Y4(m_Modbus->Y4);
        // 读取 - 左90度阀
        setIO_Y5(m_Modbus->Y5);
        // 读取 - 右45度阀
        setIO_Y6(m_Modbus->Y6);
        // 读取 - 右90度阀
        setIO_Y7(m_Modbus->Y7);
        // 读取 - 左工进
        setIO_Y10(m_Modbus->Y10);
        // 读取 - 右工进
        setIO_Y11(m_Modbus->Y11);
        // 读取 - 左压紧
        setIO_Y12(m_Modbus->Y12);
        // 读取 - 右压紧
        setIO_Y13(m_Modbus->Y13);
        // 读取 - 料高气缸
        setIO_Y14(m_Modbus->Y14);
        // 读取 - 前托料架
        setIO_Y15(m_Modbus->Y15);
        // 读取 - 中拖料架
        setIO_Y16(m_Modbus->Y16);
        // 读取 - 后拖料架
        setIO_Y17(m_Modbus->Y17);
        // 读取 - 刹车气缸
        setIO_Y20(m_Modbus->Y20);
        // 读取 - 拽料气缸
        setIO_Y21(m_Modbus->Y21);
        // 读取 - 左拉压紧
        setIO_Y22(m_Modbus->Y22);
        // 读取 - 左右吹气阀
        setIO_Y25(m_Modbus->Y25);
        break;
    case 12:
        // qDebug()<<"当前位于 : 打印机界面";
        // qDebug()<<"自动打印功能";
        // m_Modbus->read_AutoPrint_state();
        setAutoPrint(m_Modbus->AutoPrint);
        break;
    case 13:
        // qDebug()<<"当前位于 : 中间设置界面";
        // 托料架有无
        // m_Modbus->read_TLJ_Exist_value();
        setTLJ_Exist(m_Modbus->TLJ_Exist);
        break;
    case 14:
        // qDebug()<<"当前位于 : 伺服参数界面";
        // 读取每圈脉冲数
        // m_Modbus->read_Per_Pulse_Count_value();
        setPer_Pulse_Count(m_Modbus->Per_Pulse_Count);
        // qDebug()<<"每圈脉冲数:  "<<Per_Pulse_Count();
        // 读取每圈位移量
        // m_Modbus->read_Per_Move_Distance_value();
        setPer_Move_Distance(m_Modbus->Per_Move_Distance);
        // qDebug()<<"每圈位移量:  "<<Per_Move_Distance();
        // 读取最大切割长度
        // m_Modbus->read_Max_Cut_Longth_value();
        setMax_Cut_Longth(m_Modbus->Max_Cut_Longth);
        // qDebug()<<"最大切割长度:  "<<Max_Cut_Longth();
        // 读取反向软限位
        // m_Modbus->read_R_Limit_value();
        setR_Limit(m_Modbus->R_Limit);
        // qDebug()<<"反向软限位:  "<<R_Limit();
        // 读取找零点高速
        // m_Modbus->read_F_Zero_HSpeed_value();
        setF_Zero_HSpeed(m_Modbus->F_Zero_HSpeed);
        // qDebug()<<"找零点高速:  "<<F_Zero_HSpeed();
        // 读取找零点低速
        // m_Modbus->read_F_Zero_LSpeed_value();
        setF_Zero_LSpeed(m_Modbus->F_Zero_LSpeed);
        // qDebug()<<"找零点低速:  "<<F_Zero_LSpeed();
        // 读取加减速时间
        // m_Modbus->read_F_L_Speed_Time_value();
        setF_L_Speed_Time(m_Modbus->F_L_Speed_Time);
        // qDebug()<<"加减速时间:  "<<F_L_Speed_Time();
        // 读取刹车打开时间
        // m_Modbus->read_Brake_Open_Time_value();
        setBrake_Open_Time(m_Modbus->Brake_Open_Time);
        // qDebug()<<"刹车打开时间:  "<<Brake_Open_Time();
        // 读取刹车关闭延时
        // m_Modbus->read_Brake_Close_Delay_value();
        setBrake_Close_Delay(m_Modbus->Brake_Close_Delay);
        // qDebug()<<"刹车关闭延时:  "<<Brake_Close_Delay();
        // 读取当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // qDebug()<<"当前位置:  "<<currentLocation();
        // 读取编码器数据
        // m_Modbus->read_Encoder_Data_value();
        setEncoder_Data(m_Modbus->Encoder_Data);
        // qDebug()<<"编码器数据:  "<<Encoder_Data();
        break;
    case 15:
        // qDebug()<<"当前位于 ； 托料设置界面";
        // 读取检测托料架是否存在
        // m_Modbus->read_TLJ_State_value();
        setTLJ_State(m_Modbus->TLJ_State);
        // qDebug()<<"托料件检测:  "<<TLJ_State();
        // 读取托料架安全距离
        // m_Modbus->read_TLJ_Safe_Distance_value();
        setTLJ_Safe_Distance(m_Modbus->TLJ_Safe_Distance);
        // qDebug()<<"托料架安全距离:  "<<TLJ_Safe_Distance();
        // 读取 - 前托退到位
        // m_Modbus->read_Q_TLJ_Over_value();
        setQ_TLJ_Over(m_Modbus->Q_TLJ_Over);
        // qDebug()<<"前托料架:   "<<Q_TLJ_Over();
        // 读取 - 中托退到位
        // m_Modbus->read_Z_TLJ_Over_value();
        setZ_TLJ_Over(m_Modbus->Z_TLJ_Over);
        // qDebug()<<"中托料架:   "<<Z_TLJ_Over();
        // 读取 - 后托退到位
        // m_Modbus->read_H_TLJ_Over_value();
        setH_TLJ_Over(m_Modbus->H_TLJ_Over);
        // qDebug()<<"后托料架:   "<<H_TLJ_Over();
        // 读取前托料架位置
        // m_Modbus->read_Q_TLJ_Location_value();
        setQ_TLJ_Location(m_Modbus->Q_TLJ_Location);
        // qDebug()<<"前托料位置:  "<<Q_TLJ_Location();
        // 读取前托料架使能
        // m_Modbus->read_Q_TLJ_Enable_value();
        setQTLJ_Enable(m_Modbus->Q_TLJ_Enable);
        // qDebug()<<"前托料使能:  "<<QTLJ_Enable();
        // 读取前托料架0大于1小于
        // m_Modbus->read_Q_TLJ_LSState_value();
        setQ_TLJ_LSSate(m_Modbus->Q_TLJ_LS_State);
        // qDebug()<<"前托料架 0 大于 1 小于:   "<<Q_TLJ_LSSate();
        // 读取中托料架下限
        // m_Modbus->read_Z_TLJ_Down_Limit_value();
        setZ_TLJ_Down_Limit(m_Modbus->Z_TLJ_Down_Limit);
        // qDebug()<<"中托料下限:   "<<Z_TLJ_Down_Limit();
        // 读取中托料架上限
        // m_Modbus->read_Z_TLJ_Up_Limit_value();
        setZ_TLJ_Up_Limit(m_Modbus->Z_TLJ_Up_Limit);
        // qDebug()<<"中托料上限:   "<<Z_TLJ_Up_Limit();
        // 读取中托料架使能
        // m_Modbus->read_Z_TLJ_Enable_value();
        setZ_TLJ_Enable(m_Modbus->Z_TLJ_Enable);
        // qDebug()<<"中托料架使能:   "<<Z_TLJ_Enable();
        // 读取后托料架位置
        // m_Modbus->read_H_TLJ_Location_value();
        setH_TLJ_Location(m_Modbus->H_TLJ_Location);
        // qDebug()<<"后托料架位置:   "<<H_TLJ_Location();
        // 读取后托料架使能
        // m_Modbus->read_H_TLJ_Enable_value();
        setHTLJ_Enable(m_Modbus->H_TLJ_Enable);
        // qDebug()<<"后托料架使能:   "<<HTLJ_Enable();
        // 读取后托料架0大于1小于
        // m_Modbus->read_H_TLJ_LS_State_value();
        setH_TLJ_LS_State(m_Modbus->H_TLJ_LS_State);
        // qDebug()<<"后托料架 0 大于 1 小于"<<H_TLJ_LS_State();
        // 读取当前位置
        // m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // 读取X轴当前位置
        // m_Modbus->read_XAxisCurrentLocation_value();
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        break;
    case 16:
        // qDebug()<<"当前位于 : 位置补偿界面";
        // 当前位置
        m_Modbus->read_CurrentLocation_value();
        setCurrentLocation(m_Modbus->CurrentLocation);
        // 当前X轴位置
        // m_Modbus->read_XAxisCurrentLocation_value();
        setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
        // 料长设定
        // m_Modbus->read_LCSetting_value();
        setLC_value(m_Modbus->LC_value);
        // 位置补偿
        // m_Modbus->read_Location_Compensate_values();
        setLocation_Compensate01(m_Modbus->Location_Compensate01);
        setLocation_Compensate02(m_Modbus->Location_Compensate02);
        setLocation_Compensate03(m_Modbus->Location_Compensate03);
        setLocation_Compensate04(m_Modbus->Location_Compensate04);
        setLocation_Compensate05(m_Modbus->Location_Compensate05);
        setLocation_Compensate06(m_Modbus->Location_Compensate06);
        setLocation_Compensate07(m_Modbus->Location_Compensate07);
        setLocation_Compensate08(m_Modbus->Location_Compensate08);
        setLocation_Compensate09(m_Modbus->Location_Compensate09);
        setLocation_Compensate10(m_Modbus->Location_Compensate10);
        setLocation_Compensate11(m_Modbus->Location_Compensate11);
        setLocation_Compensate12(m_Modbus->Location_Compensate12);
        setLocation_Compensate13(m_Modbus->Location_Compensate13);
        setLocation_Compensate14(m_Modbus->Location_Compensate14);
        setLocation_Compensate15(m_Modbus->Location_Compensate15);
        setLocation_Compensate16(m_Modbus->Location_Compensate16);
        setLocation_Compensate17(m_Modbus->Location_Compensate17);
        setLocation_Compensate18(m_Modbus->Location_Compensate18);
        setLocation_Compensate19(m_Modbus->Location_Compensate19);
        setLocation_Compensate20(m_Modbus->Location_Compensate20);
        // 摆角专补
        m_Modbus->read_BJ_Location_Compensate_values();
        setLocation_DownLimit_BJ(m_Modbus->Location_DownLimit_BJ);
        setLocation_UpLimit_BJ(m_Modbus->Location_UpLimit_BJ);
        setLocation_Compensate_BJ(m_Modbus->Location_Compensate_BJ);
        // 摆角专补开关
        // m_Modbus->read_BJZB_Btn_value();
        setBJZB_Btn(m_Modbus->BJZB_Btn);
        break;
    case 17:
        // qDebug()<<"当前位于 : 任意位置补偿界面";
        // m_Modbus->read_Location_Compensate_Any_values();
        setLocation_DownLimit01_Any(m_Modbus->Location_DownLimit01_Any);
        setLocation_DownLimit02_Any(m_Modbus->Location_DownLimit02_Any);
        setLocation_DownLimit03_Any(m_Modbus->Location_DownLimit03_Any);
        setLocation_DownLimit04_Any(m_Modbus->Location_DownLimit04_Any);
        setLocation_DownLimit05_Any(m_Modbus->Location_DownLimit05_Any);
        setLocation_DownLimit06_Any(m_Modbus->Location_DownLimit06_Any);
        setLocation_DownLimit07_Any(m_Modbus->Location_DownLimit07_Any);
        setLocation_DownLimit08_Any(m_Modbus->Location_DownLimit08_Any);
        setLocation_DownLimit09_Any(m_Modbus->Location_DownLimit09_Any);
        setLocation_DownLimit10_Any(m_Modbus->Location_DownLimit10_Any);
        setLocation_DownLimit11_Any(m_Modbus->Location_DownLimit11_Any);
        setLocation_DownLimit12_Any(m_Modbus->Location_DownLimit12_Any);
        setLocation_DownLimit13_Any(m_Modbus->Location_DownLimit13_Any);
        setLocation_DownLimit14_Any(m_Modbus->Location_DownLimit14_Any);
        setLocation_DownLimit15_Any(m_Modbus->Location_DownLimit15_Any);
        setLocation_DownLimit16_Any(m_Modbus->Location_DownLimit16_Any);
        setLocation_DownLimit17_Any(m_Modbus->Location_DownLimit17_Any);
        setLocation_DownLimit18_Any(m_Modbus->Location_DownLimit18_Any);
        setLocation_DownLimit19_Any(m_Modbus->Location_DownLimit19_Any);
        setLocation_DownLimit20_Any(m_Modbus->Location_DownLimit20_Any);

        setLocation_UpLimit01_Any(m_Modbus->Location_UpLimit01_Any);
        setLocation_UpLimit02_Any(m_Modbus->Location_UpLimit02_Any);
        setLocation_UpLimit03_Any(m_Modbus->Location_UpLimit03_Any);
        setLocation_UpLimit04_Any(m_Modbus->Location_UpLimit04_Any);
        setLocation_UpLimit05_Any(m_Modbus->Location_UpLimit05_Any);
        setLocation_UpLimit06_Any(m_Modbus->Location_UpLimit06_Any);
        setLocation_UpLimit07_Any(m_Modbus->Location_UpLimit07_Any);
        setLocation_UpLimit08_Any(m_Modbus->Location_UpLimit08_Any);
        setLocation_UpLimit09_Any(m_Modbus->Location_UpLimit09_Any);
        setLocation_UpLimit10_Any(m_Modbus->Location_UpLimit10_Any);
        setLocation_UpLimit11_Any(m_Modbus->Location_UpLimit11_Any);
        setLocation_UpLimit12_Any(m_Modbus->Location_UpLimit12_Any);
        setLocation_UpLimit13_Any(m_Modbus->Location_UpLimit13_Any);
        setLocation_UpLimit14_Any(m_Modbus->Location_UpLimit14_Any);
        setLocation_UpLimit15_Any(m_Modbus->Location_UpLimit15_Any);
        setLocation_UpLimit16_Any(m_Modbus->Location_UpLimit16_Any);
        setLocation_UpLimit17_Any(m_Modbus->Location_UpLimit17_Any);
        setLocation_UpLimit18_Any(m_Modbus->Location_UpLimit18_Any);
        setLocation_UpLimit19_Any(m_Modbus->Location_UpLimit19_Any);
        setLocation_UpLimit20_Any(m_Modbus->Location_UpLimit20_Any);

        setLocation_Compensate01_Any(m_Modbus->Location_Compensate01_Any);
        setLocation_Compensate02_Any(m_Modbus->Location_Compensate02_Any);
        setLocation_Compensate03_Any(m_Modbus->Location_Compensate03_Any);
        setLocation_Compensate04_Any(m_Modbus->Location_Compensate04_Any);
        setLocation_Compensate05_Any(m_Modbus->Location_Compensate05_Any);
        setLocation_Compensate06_Any(m_Modbus->Location_Compensate06_Any);
        setLocation_Compensate07_Any(m_Modbus->Location_Compensate07_Any);
        setLocation_Compensate08_Any(m_Modbus->Location_Compensate08_Any);
        setLocation_Compensate09_Any(m_Modbus->Location_Compensate09_Any);
        setLocation_Compensate10_Any(m_Modbus->Location_Compensate10_Any);
        setLocation_Compensate11_Any(m_Modbus->Location_Compensate11_Any);
        setLocation_Compensate12_Any(m_Modbus->Location_Compensate12_Any);
        setLocation_Compensate13_Any(m_Modbus->Location_Compensate13_Any);
        setLocation_Compensate14_Any(m_Modbus->Location_Compensate14_Any);
        setLocation_Compensate15_Any(m_Modbus->Location_Compensate15_Any);
        setLocation_Compensate16_Any(m_Modbus->Location_Compensate16_Any);
        setLocation_Compensate17_Any(m_Modbus->Location_Compensate17_Any);
        setLocation_Compensate18_Any(m_Modbus->Location_Compensate18_Any);
        setLocation_Compensate19_Any(m_Modbus->Location_Compensate19_Any);
        setLocation_Compensate20_Any(m_Modbus->Location_Compensate20_Any);

        // m_Modbus->read_Compensate_Btn_Any_values();
        setCompensateBtn01_Any(m_Modbus->CompensateBtn01_Any);
        setCompensateBtn02_Any(m_Modbus->CompensateBtn02_Any);
        setCompensateBtn03_Any(m_Modbus->CompensateBtn03_Any);
        setCompensateBtn04_Any(m_Modbus->CompensateBtn04_Any);
        setCompensateBtn05_Any(m_Modbus->CompensateBtn05_Any);
        setCompensateBtn06_Any(m_Modbus->CompensateBtn06_Any);
        setCompensateBtn07_Any(m_Modbus->CompensateBtn07_Any);
        setCompensateBtn08_Any(m_Modbus->CompensateBtn08_Any);
        setCompensateBtn09_Any(m_Modbus->CompensateBtn09_Any);
        setCompensateBtn10_Any(m_Modbus->CompensateBtn10_Any);
        setCompensateBtn11_Any(m_Modbus->CompensateBtn11_Any);
        setCompensateBtn12_Any(m_Modbus->CompensateBtn12_Any);
        setCompensateBtn13_Any(m_Modbus->CompensateBtn13_Any);
        setCompensateBtn14_Any(m_Modbus->CompensateBtn14_Any);
        setCompensateBtn15_Any(m_Modbus->CompensateBtn15_Any);
        setCompensateBtn16_Any(m_Modbus->CompensateBtn16_Any);
        setCompensateBtn17_Any(m_Modbus->CompensateBtn17_Any);
        setCompensateBtn18_Any(m_Modbus->CompensateBtn18_Any);
        setCompensateBtn19_Any(m_Modbus->CompensateBtn19_Any);
        setCompensateBtn20_Any(m_Modbus->CompensateBtn20_Any);
        break;
    case 18:
        // qDebug()<<"当前位于 : 密码修改界面";
        break;
    case 19:
        // qDebug()<<"当前位于 : 设备配置界面";
        // 读取工进时间
        setGJTIME_Mode(m_Modbus->GJTIME_Mode);
        // 拉手功能是否存在
        setLS_Exist(m_Modbus->LS_Exist);
        // 45度专切
        setAngle45_Mode(m_Modbus->Angle45_Mode);
        // 打印机有无
        setPrinter_Exist(m_Modbus->Printer_Exist);
        // 伺服类型
        setServo_Mode(m_Modbus->Servo_Mode);
        // 托料架有无
        setTLJ_Exist(m_Modbus->TLJ_Exist);
        // 锯片选择有无
        setSawChoose_Mode(m_Modbus->SawChoose_Mode);
        // 旋钮功能
        setKnob_Program(m_Modbus->Knob_Program);
        // 自动测高功能
        setAutoObserve_Exist(m_Modbus->AutoObserve_Exist);
        // 限位开关
        setLimitBtn_Mode(m_Modbus->LimitBtn_Mode);
        // 读取内外摆模式 内摆1 外摆0
        setNBWB_Mode(m_Modbus->NBWB_Mode);
        // 机头旋钮常开
        setJT_Knob_Mode(m_Modbus->JT_Knob_Mode);
        // 电磁阀断电不断电
        setDCF_Power_Mode(m_Modbus->DCF_Power_Mode);
        // 急停按钮模式
        setScram_Mode(m_Modbus->Scram_Mode);
        // 编码器位数
        setEncoder_Mode(m_Modbus->Encoder_Mode);
        // 伺服报警模式
        setServo_Warning_Mode(m_Modbus->Servo_Warning_Mode);

        // 双锯延时
        setDoubleSaw_Open(m_Modbus->DoubleSaw_Open);
        // 双锯延时时间
        m_Modbus->read_DoubleSaw_Delay_value();
        setDoubleSaw_Delay(m_Modbus->DoubleSaw_Delay);

        break;


    default:
        break;
    }


    // switch(pageNumber())
    // {
    // case 1:
    //     // qDebug()<<"当前位于 : 加工界面";
    //     // 料高设定值
    //     // m_Modbus->read_LG_value();
    //     setLG_value(m_Modbus->LG_value);
    //     // 当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // 读取X轴当前位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     // 读取当前段数
    //     // m_Modbus->read_CurrentSectiones_value();
    //     setCurrentSectiones(m_Modbus->CurrentSectiones);
    //     // 读取料长设定
    //     // m_Modbus->read_LCSetting_value();
    //     setLC_value(m_Modbus->LC_value);
    //     // 读取段数设定
    //     // m_Modbus->read_SectionesSetting_value();
    //     setSection_Set(m_Modbus->sectionSetting);
    //     // 读取料高测量值
    //     // m_Modbus->read_LGObserve_value();
    //     setLG_observe(m_Modbus->LGObserve);
    //     // 左锯角度反馈
    //     // m_Modbus->read_LeftSawAngle_Backvalue();
    //     setLeftSawAngle(m_Modbus->leftSawAngleBack);
    //     // 右锯角度反馈
    //     // m_Modbus->read_RightSawAngle_Backvalue();
    //     setRightSawAngle(m_Modbus->rightSawAngleBack);
    //     // 旋钮模式
    //     // m_Modbus->read_knobMode_value();
    //     setKnobMode(m_Modbus->knobMode);
    //     // 读取左锯片前位
    //     // m_Modbus->read_LeftSawQW_state();
    //     setLeftSawQW(m_Modbus->leftSawQW );
    //     // 读取左锯片后位
    //     // m_Modbus->read_LeftSawHW_state();
    //     setLeftSawHW(m_Modbus->leftSawHW );
    //     // 读取右锯片前位
    //     // m_Modbus->read_RightSawQW_state();
    //     setRightSawQW(m_Modbus->rightSawQW );
    //     // 读取右锯片后位
    //     // m_Modbus->read_RightSawHW_state();
    //     setRightSawHW(m_Modbus->rightSawHW );
    //     // 料高测量中
    //     // m_Modbus->read_LGObserve_value();
    //     setLG_observe(m_Modbus->LGObserve);
    //     // 读取按钮状态
    //     // m_Modbus->read_ImpactState_state();
    //     setImpactState(m_Modbus->impactState);
    //     setSawState(m_Modbus->sawState);
    //     setGjState(m_Modbus->gjState);
    //     // setProcess_UpLimit_DownLimit();
    //     // 45度专切
    //     // m_Modbus->read_Angle45_Mode_value();
    //     setAngle45_Mode(m_Modbus->Angle45_Mode);
    //     break;
    // case 2:
    //     // qDebug()<<"当前位于 : 超长加工界面";
    //     // 读取当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // 读取X轴当前位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     // 读取当前段数
    //     // m_Modbus->read_CurrentSectiones_value();
    //     setCurrentSectiones(m_Modbus->CurrentSectiones);
    //     // 读取超长料长
    //     // m_Modbus->read_ExtraLong_LC_value();
    //     setExtraLong_LC(m_Modbus->ExtraLong_LC);
    //     // 读取机械坐标
    //     // m_Modbus->read_MechineLocation_value();
    //     setMechineLocation(m_Modbus->MechineLocation);
    //     // 读取料高设定
    //     // m_Modbus->read_LG_value();
    //     setLG_value(m_Modbus->LG_value);
    //     // 读取 超长补偿
    //     // m_Modbus->read_ExtraLongCompensate_value();
    //     setExtraLongCompensate(m_Modbus->ExtraLongCompensate);
    //     // 左锯角度反馈
    //     // m_Modbus->read_LeftSawAngle_Backvalue();
    //     setLeftSawAngle(m_Modbus->leftSawAngleBack);
    //     // 右锯角度反馈
    //     // m_Modbus->read_RightSawAngle_Backvalue();
    //     setRightSawAngle(m_Modbus->rightSawAngleBack );
    //     // 旋钮模式
    //     // m_Modbus->read_knobMode_value();
    //     setKnobMode(m_Modbus->knobMode);
    //     // 读取左锯片前位
    //     // m_Modbus->read_LeftSawQW_state();
    //     setLeftSawQW(m_Modbus->leftSawQW);
    //     // 读取左锯片后位
    //     // m_Modbus->read_LeftSawHW_state();
    //     setLeftSawHW(m_Modbus->leftSawHW );
    //     // 读取右锯片前位
    //     // m_Modbus->read_RightSawQW_state();
    //     setRightSawQW(m_Modbus->rightSawQW);
    //     // 读取右锯片后位
    //     // m_Modbus->read_RightSawHW_state();
    //     setRightSawHW(m_Modbus->rightSawHW);
    //     // 45度专切
    //     // m_Modbus->read_Angle45_Mode_value();
    //     setAngle45_Mode(m_Modbus->Angle45_Mode);
    //     // 计算超长料长上限和下限
    //     // setExtraLong_UpLimit_DownLimit();
    //     break;
    // case 3:
    //     // qDebug()<<"当前位于 : 超短加工界面";
    //     // 当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // X轴当前位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     // 当前段数
    //     // m_Modbus->read_CurrentSectiones_value();
    //     setCurrentSectiones(m_Modbus->CurrentSectiones);
    //     // 超短料长
    //     // m_Modbus->read_ExtraShort_LC_value();
    //     setExtraShort_LC(m_Modbus->ExtraShort_LC);
    //     // 料高设定
    //     // m_Modbus->read_LG_value();
    //     setLG_value(m_Modbus->LG_value);
    //     // 回拉距离
    //     // m_Modbus->read_HL_Distance_value();
    //     setHL_Distance(m_Modbus->HL_Distance);
    //     // 超短补偿
    //     // m_Modbus->read_ExtraShortCompensate_value();
    //     setExtraShortCompensate(m_Modbus->ExtraShortCompensate);
    //     // 左锯角度反馈
    //     // m_Modbus->read_LeftSawAngle_Backvalue();
    //     setLeftSawAngle(m_Modbus->leftSawAngleBack );
    //     // 右锯角度反馈
    //     // m_Modbus->read_RightSawAngle_Backvalue();
    //     setRightSawAngle(m_Modbus->rightSawAngleBack);
    //     // 旋钮模式
    //     // m_Modbus->read_knobMode_value();
    //     setKnobMode(m_Modbus->knobMode);
    //     // 读取左锯片前位
    //     // m_Modbus->read_LeftSawQW_state();
    //     setLeftSawQW(m_Modbus->leftSawQW );
    //     // 读取左锯片后位
    //     // m_Modbus->read_LeftSawHW_state();
    //     setLeftSawHW(m_Modbus->leftSawHW );
    //     // 读取右锯片前位
    //     // m_Modbus->read_RightSawQW_state();
    //     setRightSawQW(m_Modbus->rightSawQW );
    //     // 读取右锯片后位
    //     // m_Modbus->read_RightSawHW_state();
    //     setRightSawHW(m_Modbus->rightSawHW );
    //     // 读取原点值
    //     // m_Modbus->read_Origin_value();
    //     setOriginValue(m_Modbus->OriginValue);
    //     // 读取内摆安全位置
    //     // m_Modbus->read_NB_SafeLocation_value();
    //     setNB_SafeLocation(m_Modbus->NB_SafeLocation);
    //     // 45度专切
    //     // m_Modbus->read_Angle45_Mode_value();
    //     setAngle45_Mode(m_Modbus->Angle45_Mode);
    //     // 计算超短料长上限和下限
    //     // setExtraShort_UpLimit_DownLimit();
    //     break;
    // case 4:
    //     // qDebug()<<"当前位于 : 排料加工界面";
    //     // 当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // X轴当前位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     // m_Modbus->read_Knob_Location_value();
    //     setKnobLocation(m_Modbus->Knob_Location);
    //     // 读取内外摆模式 内摆1 外摆0
    //     // m_Modbus->read_NB_WB_value();
    //     setNBWB_Mode(m_Modbus->NBWB_Mode);

    //     // 读取已切数量排料加工
    //     // m_Modbus->read_Wokred_Count_PL_values();
    //     setWorkedCount01_PL(m_Modbus->workedCount01_PL);
    //     setWorkedCount02_PL(m_Modbus->workedCount02_PL);
    //     setWorkedCount03_PL(m_Modbus->workedCount03_PL);
    //     setWorkedCount04_PL(m_Modbus->workedCount04_PL);
    //     setWorkedCount05_PL(m_Modbus->workedCount05_PL);
    //     setWorkedCount06_PL(m_Modbus->workedCount06_PL);
    //     setWorkedCount07_PL(m_Modbus->workedCount07_PL);
    //     setWorkedCount08_PL(m_Modbus->workedCount08_PL);
    //     setWorkedCount09_PL(m_Modbus->workedCount09_PL);
    //     setWorkedCount10_PL(m_Modbus->workedCount10_PL);
    //     setWorkedCount11_PL(m_Modbus->workedCount11_PL);
    //     setWorkedCount12_PL(m_Modbus->workedCount12_PL);
    //     setWorkedCount13_PL(m_Modbus->workedCount13_PL);
    //     setWorkedCount14_PL(m_Modbus->workedCount14_PL);
    //     setWorkedCount15_PL(m_Modbus->workedCount15_PL);
    //     setWorkedCount16_PL(m_Modbus->workedCount16_PL);
    //     setWorkedCount17_PL(m_Modbus->workedCount17_PL);
    //     setWorkedCount18_PL(m_Modbus->workedCount18_PL);
    //     setWorkedCount19_PL(m_Modbus->workedCount19_PL);
    //     setWorkedCount20_PL(m_Modbus->workedCount20_PL);
    //     break;
    // case 5:
    //     // qDebug()<<"当前位于 : 角码加工界面";
    //     // 当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // X轴当前位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     // 左锯角度反馈
    //     // m_Modbus->read_LeftSawAngle_Backvalue();
    //     setLeftSawAngle(m_Modbus->leftSawAngleBack);
    //     // 右锯角度反馈
    //     // m_Modbus->read_RightSawAngle_Backvalue();
    //     setRightSawAngle(m_Modbus->rightSawAngleBack);
    //     // 旋钮模式
    //     // m_Modbus->read_knobMode_value();
    //     setKnobMode(m_Modbus->knobMode);
    //     // 读取左锯片前位
    //     // m_Modbus->read_LeftSawQW_state();
    //     setLeftSawQW(m_Modbus->leftSawQW );
    //     // 读取左锯片后位
    //     // m_Modbus->read_LeftSawHW_state();
    //     setLeftSawHW(m_Modbus->leftSawHW);
    //     // 读取右锯片前位
    //     // m_Modbus->read_RightSawQW_state();
    //     setRightSawQW(m_Modbus->rightSawQW );
    //     // 读取右锯片后位
    //     // m_Modbus->read_RightSawHW_state();
    //     setRightSawHW(m_Modbus->rightSawHW);
    //     // 当前段数 - 角码界面
    //     // m_Modbus->read_CurrentSectiones_JM_value();
    //     setCurrentSectiones_JM(m_Modbus->currentSectiones_JM);
    //     // 累计段数
    //     // m_Modbus->read_WorkedSections_JM_value();
    //     setWorkedSectiones_JM(m_Modbus->workedSectiones_JM);
    //     // 读取角码最短料长
    //     // m_Modbus->read_MinLongth_JM_value();
    //     setMiniLongth_JM(m_Modbus->MiniLongth_JM);
    //     // 读取原料长度
    //     // m_Modbus->read_MaterialLongth_JM_value();
    //     setMaterialLong_JM(m_Modbus->MaterialLongth_JM);
    //     // 读取角码长度
    //     // m_Modbus->read_JMLongth_JM_value();
    //     setJMLongth_JM(m_Modbus->JMLongth_JM);
    //     // 读取角码段数
    //     // m_Modbus->read_JMSectiones_JM_value();
    //     setJMSectiones(m_Modbus->JMSectiones_JM);
    //     // 读取刀补
    //     // m_Modbus->read_DB_JM_value();
    //     setDB_JM(m_Modbus->DB_JM);
    //     // 读取角码料长错误
    //     // m_Modbus->read_JMLongthErr_JM_value();
    //     setJMLongthErr_JM(m_Modbus->JMLongthErr_JM);
    //     break;
    // case 6:
    //     // qDebug()<<"当前位于 : 管理界面";
    //     // 左锯角度反馈
    //     // m_Modbus->read_LeftSawAngle_Backvalue();
    //     setLeftSawAngle(m_Modbus->leftSawAngleBack);
    //     // 右锯角度反馈
    //     // m_Modbus->read_RightSawAngle_Backvalue();
    //     setRightSawAngle(m_Modbus->rightSawAngleBack);
    //     // 当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // 料高测量值
    //     // m_Modbus->read_LGObserve_value();
    //     setLG_observe(m_Modbus->LGObserve);
    //     // 料高测量状态
    //     // m_Modbus->read_LGObserveState_value();
    //     setLGObserveState(m_Modbus->LGObserveState);
    //     // m_Modbus->read_IO_Y0_Y25();
    //     // 读取 - 左电机
    //     setIO_Y2(m_Modbus->Y2);
    //     // 读取 - 右电机
    //     setIO_Y3(m_Modbus->Y3);
    //     // 读取 - 左压紧
    //     setIO_Y12(m_Modbus->Y12);
    //     // 读取 - 右压紧
    //     setIO_Y13(m_Modbus->Y13);
    //     // 读取 - 料高气缸
    //     setIO_Y14(m_Modbus->Y14);
    //     // 读取 - 左工进
    //     setIO_Y10(m_Modbus->Y10);
    //     // 读取 - 右工进
    //     setIO_Y11(m_Modbus->Y11);
    //     // 读取 - 拽料气缸
    //     setIO_Y21(m_Modbus->Y21);
    //     // 读取 - 左拉料压紧
    //     setIO_Y23(m_Modbus->Y23);
    //     // 原点值
    //     // m_Modbus->read_Origin_value();
    //     setOriginValue(m_Modbus->OriginValue);
    //     // 定位速度
    //     // m_Modbus->read_LocationSpeed_value();
    //     setLocationSpeed(m_Modbus->LocationSpeed);
    //     // 手动速度
    //     // m_Modbus->read_ManualSpeed_value();
    //     setManualSpeed(m_Modbus->ManualSpeed);
    //     // 压紧动作时间
    //     // m_Modbus->read_ImpactTime_value();
    //     setImpactTime(m_Modbus->ImpactTime);
    //     // 左右吹气时间
    //     // m_Modbus->read_LR_Blow_Time_value();
    //     setLR_Blow_Time(m_Modbus->LR_Blow_Time);
    //     // 左锯工进时间
    //     // m_Modbus->read_LeftSaw_GJTime_value();
    //     setLeftSaw_GJTime(m_Modbus->LeftSaw_GJTime);
    //     // 右锯工进时间
    //     // m_Modbus->read_RightSaw_GJTime_value();
    //     setRightSaw_GJTime(m_Modbus->RightSaw_GJTime);
    //     // 双锯45度补偿
    //     // m_Modbus->read_DoubleSaws45_Compensate_value();
    //     setDoubleSaws45_Compensate(m_Modbus->DoubleSaws45_Compensate);
    //     // 单独45度补偿
    //     // m_Modbus->read_SingleSaw45_Compensate_value();
    //     setSingleSaw45_Compensate(m_Modbus->SingleSaw45_Compensate);
    //     // 45度安全位置
    //     // m_Modbus->read_45Safe_Distance_value();
    //     setSafeDistance(m_Modbus->safeDistance);
    //     // 料高检测时间
    //     // m_Modbus->read_LG_Detection_Time_value();
    //     setLG_Detection_Time(m_Modbus->LG_Detection_Time);
    //     // 料高磁尺当量
    //     // m_Modbus->read_LG_CC_DL_value();
    //     setLG_CC_DL(m_Modbus->LG_CC_DL);
    //     // 电磁阀断电延时
    //     // m_Modbus->read_DCF_OutageDelay_value();
    //     setDCF_OutageDelay(m_Modbus->DCF_OutageDelay);
    //     break;
    // case 7:
    //     // qDebug()<<"当前位于 : 拉手定位界面";
    //     // 读取当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // 读取把手位置
    //     // m_Modbus->read_BS_Location_value();
    //     setLS_Location(m_Modbus->LS_Locatoin);
    //     // 读取把手位置补偿
    //     // m_Modbus->read_BS_LocationCompensate_value();
    //     setLS_LocationCompensate(m_Modbus->LS_LocationCompensate);
    //     // 读取把手宽度
    //     // m_Modbus->read_BS_Width_value();
    //     setLS_Width(m_Modbus->LS_Width);
    //     break;
    // case 8:
    //     // qDebug()<<"当前位于 : 料高选择界面";
    //     // 料高设定值
    //     // m_Modbus->read_LG_value();
    //     setLG_value(m_Modbus->LG_value);
    //     break;
    // case 9:
    //     // qDebug()<<"当前位于 : U盘料单界面";
    //     break;
    // case 10:
    //     // qDebug()<<"当前位于 : 二维码料单界面";
    //     // m_Modbus->reaed_M_Length_QR_values();
    //     setM_Length01_QR(m_Modbus->m_Length01_QR);
    //     setM_Length02_QR(m_Modbus->m_Length02_QR);
    //     setM_Length03_QR(m_Modbus->m_Length03_QR);
    //     setM_Length04_QR(m_Modbus->m_Length04_QR);
    //     setM_Length05_QR(m_Modbus->m_Length05_QR);
    //     setM_Length06_QR(m_Modbus->m_Length06_QR);
    //     setM_Length07_QR(m_Modbus->m_Length07_QR);
    //     setM_Length08_QR(m_Modbus->m_Length08_QR);
    //     setM_Length09_QR(m_Modbus->m_Length09_QR);
    //     setM_Length10_QR(m_Modbus->m_Length10_QR);
    //     setM_Length11_QR(m_Modbus->m_Length11_QR);
    //     setM_Length12_QR(m_Modbus->m_Length12_QR);
    //     setM_Length13_QR(m_Modbus->m_Length13_QR);
    //     setM_Length14_QR(m_Modbus->m_Length14_QR);
    //     setM_Length15_QR(m_Modbus->m_Length15_QR);
    //     setM_Length16_QR(m_Modbus->m_Length16_QR);
    //     setM_Length17_QR(m_Modbus->m_Length17_QR);
    //     setM_Length18_QR(m_Modbus->m_Length18_QR);
    //     setM_Length19_QR(m_Modbus->m_Length19_QR);
    //     setM_Length20_QR(m_Modbus->m_Length20_QR);

    //     // m_Modbus->read_Left_Right_Angle_QR_values();
    //     setLeftAngle01_QR(m_Modbus->LeftAngle01_QR);
    //     setLeftAngle02_QR(m_Modbus->LeftAngle02_QR);
    //     setLeftAngle03_QR(m_Modbus->LeftAngle03_QR);
    //     setLeftAngle04_QR(m_Modbus->LeftAngle04_QR);
    //     setLeftAngle05_QR(m_Modbus->LeftAngle05_QR);
    //     setLeftAngle06_QR(m_Modbus->LeftAngle06_QR);
    //     setLeftAngle07_QR(m_Modbus->LeftAngle07_QR);
    //     setLeftAngle08_QR(m_Modbus->LeftAngle08_QR);
    //     setLeftAngle09_QR(m_Modbus->LeftAngle09_QR);
    //     setLeftAngle10_QR(m_Modbus->LeftAngle10_QR);
    //     setLeftAngle11_QR(m_Modbus->LeftAngle11_QR);
    //     setLeftAngle12_QR(m_Modbus->LeftAngle12_QR);
    //     setLeftAngle13_QR(m_Modbus->LeftAngle13_QR);
    //     setLeftAngle14_QR(m_Modbus->LeftAngle14_QR);
    //     setLeftAngle15_QR(m_Modbus->LeftAngle15_QR);
    //     setLeftAngle16_QR(m_Modbus->LeftAngle16_QR);
    //     setLeftAngle17_QR(m_Modbus->LeftAngle17_QR);
    //     setLeftAngle18_QR(m_Modbus->LeftAngle18_QR);
    //     setLeftAngle19_QR(m_Modbus->LeftAngle19_QR);
    //     setLeftAngle20_QR(m_Modbus->LeftAngle20_QR);

    //     setRightAngle01_QR(m_Modbus->RightAngle01_QR);
    //     setRightAngle02_QR(m_Modbus->RightAngle02_QR);
    //     setRightAngle03_QR(m_Modbus->RightAngle03_QR);
    //     setRightAngle04_QR(m_Modbus->RightAngle04_QR);
    //     setRightAngle05_QR(m_Modbus->RightAngle05_QR);
    //     setRightAngle06_QR(m_Modbus->RightAngle06_QR);
    //     setRightAngle07_QR(m_Modbus->RightAngle07_QR);
    //     setRightAngle08_QR(m_Modbus->RightAngle08_QR);
    //     setRightAngle09_QR(m_Modbus->RightAngle09_QR);
    //     setRightAngle10_QR(m_Modbus->RightAngle10_QR);
    //     setRightAngle11_QR(m_Modbus->RightAngle11_QR);
    //     setRightAngle12_QR(m_Modbus->RightAngle12_QR);
    //     setRightAngle13_QR(m_Modbus->RightAngle13_QR);
    //     setRightAngle14_QR(m_Modbus->RightAngle14_QR);
    //     setRightAngle15_QR(m_Modbus->RightAngle15_QR);
    //     setRightAngle16_QR(m_Modbus->RightAngle16_QR);
    //     setRightAngle17_QR(m_Modbus->RightAngle17_QR);
    //     setRightAngle18_QR(m_Modbus->RightAngle18_QR);
    //     setRightAngle19_QR(m_Modbus->RightAngle19_QR);
    //     setRightAngle20_QR(m_Modbus->RightAngle20_QR);

    //     // m_Modbus->read_Count_QR_values();
    //     setCount01_QR(m_Modbus->Count01_QR);
    //     setCount02_QR(m_Modbus->Count02_QR);
    //     setCount03_QR(m_Modbus->Count03_QR);
    //     setCount04_QR(m_Modbus->Count04_QR);
    //     setCount05_QR(m_Modbus->Count05_QR);
    //     setCount06_QR(m_Modbus->Count06_QR);
    //     setCount07_QR(m_Modbus->Count07_QR);
    //     setCount08_QR(m_Modbus->Count08_QR);
    //     setCount09_QR(m_Modbus->Count09_QR);
    //     setCount10_QR(m_Modbus->Count10_QR);
    //     setCount11_QR(m_Modbus->Count11_QR);
    //     setCount12_QR(m_Modbus->Count12_QR);
    //     setCount13_QR(m_Modbus->Count13_QR);
    //     setCount14_QR(m_Modbus->Count14_QR);
    //     setCount15_QR(m_Modbus->Count15_QR);
    //     setCount16_QR(m_Modbus->Count16_QR);
    //     setCount17_QR(m_Modbus->Count17_QR);
    //     setCount18_QR(m_Modbus->Count18_QR);
    //     setCount19_QR(m_Modbus->Count19_QR);
    //     setCount20_QR(m_Modbus->Count20_QR);

    //     // m_Modbus->read_Worked_Count_QR_values();
    //     setWorked_Count01_QR(m_Modbus->Worked_Count01_QR);
    //     setWorked_Count02_QR(m_Modbus->Worked_Count02_QR);
    //     setWorked_Count03_QR(m_Modbus->Worked_Count03_QR);
    //     setWorked_Count04_QR(m_Modbus->Worked_Count04_QR);
    //     setWorked_Count05_QR(m_Modbus->Worked_Count05_QR);
    //     setWorked_Count06_QR(m_Modbus->Worked_Count06_QR);
    //     setWorked_Count07_QR(m_Modbus->Worked_Count07_QR);
    //     setWorked_Count08_QR(m_Modbus->Worked_Count08_QR);
    //     setWorked_Count09_QR(m_Modbus->Worked_Count09_QR);
    //     setWorked_Count10_QR(m_Modbus->Worked_Count10_QR);
    //     setWorked_Count11_QR(m_Modbus->Worked_Count11_QR);
    //     setWorked_Count12_QR(m_Modbus->Worked_Count12_QR);
    //     setWorked_Count13_QR(m_Modbus->Worked_Count13_QR);
    //     setWorked_Count14_QR(m_Modbus->Worked_Count14_QR);
    //     setWorked_Count15_QR(m_Modbus->Worked_Count15_QR);
    //     setWorked_Count16_QR(m_Modbus->Worked_Count16_QR);
    //     setWorked_Count17_QR(m_Modbus->Worked_Count17_QR);
    //     setWorked_Count18_QR(m_Modbus->Worked_Count18_QR);
    //     setWorked_Count19_QR(m_Modbus->Worked_Count19_QR);
    //     setWorked_Count20_QR(m_Modbus->Worked_Count20_QR);

    //     // 读取当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);

    //     // 读取料高设定
    //     // m_Modbus->read_LG_value();
    //     setLG_value(m_Modbus->LG_value);

    //     break;
    // case 11:
    //     // qDebug()<<"当前位于 : IO监控界面";
    //     // 读取 脉冲
    //     // m_Modbus->read_IO_Y0_Y25();
    //     setIO_Y0(m_Modbus->Y0);
    //     // 读取 方向
    //     setIO_Y1(m_Modbus->Y1);
    //     // 读取 - 左电机
    //     setIO_Y2(m_Modbus->Y2);
    //     // 读取 - 右电机
    //     setIO_Y3(m_Modbus->Y3);
    //     // 读取 - 左45度阀
    //     setIO_Y4(m_Modbus->Y4);
    //     // 读取 - 左90度阀
    //     setIO_Y5(m_Modbus->Y5);
    //     // 读取 - 右45度阀
    //     setIO_Y6(m_Modbus->Y6);
    //     // 读取 - 右90度阀
    //     setIO_Y7(m_Modbus->Y7);
    //     // 读取 - 左工进
    //     setIO_Y10(m_Modbus->Y10);
    //     // 读取 - 右工进
    //     setIO_Y11(m_Modbus->Y11);
    //     // 读取 - 左压紧
    //     setIO_Y12(m_Modbus->Y12);
    //     // 读取 - 右压紧
    //     setIO_Y13(m_Modbus->Y13);
    //     // 读取 - 料高气缸
    //     setIO_Y14(m_Modbus->Y14);
    //     // 读取 - 前托料架
    //     setIO_Y15(m_Modbus->Y15);
    //     // 读取 - 中拖料架
    //     setIO_Y16(m_Modbus->Y16);
    //     // 读取 - 后拖料架
    //     setIO_Y17(m_Modbus->Y17);
    //     // 读取 - 刹车气缸
    //     setIO_Y20(m_Modbus->Y20);
    //     // 读取 - 拽料气缸
    //     setIO_Y21(m_Modbus->Y21);
    //     // 读取 - 左拉压紧
    //     setIO_Y22(m_Modbus->Y22);

    //     // 读取 - 磁尺A相
    //     // m_Modbus->read_IO_X0();
    //     setIO_X0(m_Modbus->X0);
    //     // 读取 - 磁尺B相
    //     // m_Modbus->read_IO_X1();
    //     setIO_X1(m_Modbus->X1);
    //     // 读取 - 左机头旋转
    //     // m_Modbus->read_IO_X2();
    //     setIO_X2(m_Modbus->X2);
    //     // 读取 - 右机头旋转
    //     // m_Modbus->read_IO_X3();
    //     setIO_X3(m_Modbus->X3);
    //     // 读取 - 急停按钮
    //     // m_Modbus->read_IO_X5();
    //     setIO_X5(m_Modbus->X5);
    //     // 读取 - 压紧按钮
    //     // m_Modbus->read_IO_X6();
    //     setIO_X6(m_Modbus->X6);
    //     // 读取 - 工进按钮
    //     // m_Modbus->read_IO_X7();
    //     setIO_X7(m_Modbus->X7);
    //     // 读取 - 锯片启停
    //     // m_Modbus->read_IO_X10();
    //     setIO_X10(m_Modbus->X10);
    //     // 读取 - 原点复位
    //     // m_Modbus->read_IO_X11();
    //     setIO_X11(m_Modbus->X11);
    //     // 读取左锯片后位
    //     // m_Modbus->read_LeftSawHW_state();
    //     setLeftSawHW(m_Modbus->leftSawHW);
    //     // 读取右锯片后位
    //     // m_Modbus->read_RightSawHW_state();
    //     setRightSawHW(m_Modbus->rightSawHW);
    //     // 读取左锯片前位
    //     // m_Modbus->read_LeftSawQW_state();
    //     setLeftSawQW(m_Modbus->leftSawQW );
    //     // 读取右锯片前位
    //     // m_Modbus->read_RightSawQW_state();
    //     setRightSawQW(m_Modbus->rightSawQW );
    //     // 读取 - 伺服报警
    //     // m_Modbus->read_IO_X16();
    //     setIO_X16(m_Modbus->X16);
    //     // 读取 - 伺服准备好
    //     // m_Modbus->read_IO_X17();
    //     setIO_X17(m_Modbus->X17);
    //     // 读取 - X轴原点
    //     // m_Modbus->read_IO_X20();
    //     setIO_X20(m_Modbus->X20);
    //     // 读取 - X轴正限位
    //     // m_Modbus->read_IO_X21();
    //     setIO_X21(m_Modbus->X21);
    //     // 读取 - X轴负限位
    //     // m_Modbus->read_IO_X22();
    //     setIO_X22(m_Modbus->X22);
    //     // 读取 - 前托退到位
    //     // m_Modbus->read_IO_X23();
    //     setIO_X23(m_Modbus->X23);
    //     // 读取 - 中托退到位
    //     // m_Modbus->read_IO_X24();
    //     setIO_X24(m_Modbus->X24);
    //     // 读取 - 后托退到位
    //     // m_Modbus->read_IO_X25();
    //     setIO_X25(m_Modbus->X25);
    //     break;
    // case 12:
    //     // qDebug()<<"当前位于 : 打印机界面";
    //     // qDebug()<<"自动打印功能";
    //     // m_Modbus->read_AutoPrint_state();
    //     setAutoPrint(m_Modbus->AutoPrint);
    //     break;
    // case 13:
    //     // qDebug()<<"当前位于 : 中间设置界面";
    //     // 托料架有无
    //     // m_Modbus->read_TLJ_Exist_value();
    //     setTLJ_Exist(m_Modbus->TLJ_Exist);
    //     break;
    // case 14:
    //     // qDebug()<<"当前位于 : 伺服参数界面";
    //     // 读取每圈脉冲数
    //     // m_Modbus->read_Per_Pulse_Count_value();
    //     setPer_Pulse_Count(m_Modbus->Per_Pulse_Count);
    //     // qDebug()<<"每圈脉冲数:  "<<Per_Pulse_Count();
    //     // 读取每圈位移量
    //     // m_Modbus->read_Per_Move_Distance_value();
    //     setPer_Move_Distance(m_Modbus->Per_Move_Distance);
    //     // qDebug()<<"每圈位移量:  "<<Per_Move_Distance();
    //     // 读取最大切割长度
    //     // m_Modbus->read_Max_Cut_Longth_value();
    //     setMax_Cut_Longth(m_Modbus->Max_Cut_Longth);
    //     // qDebug()<<"最大切割长度:  "<<Max_Cut_Longth();
    //     // 读取反向软限位
    //     // m_Modbus->read_R_Limit_value();
    //     setR_Limit(m_Modbus->R_Limit);
    //     // qDebug()<<"反向软限位:  "<<R_Limit();
    //     // 读取找零点高速
    //     // m_Modbus->read_F_Zero_HSpeed_value();
    //     setF_Zero_HSpeed(m_Modbus->F_Zero_HSpeed);
    //     // qDebug()<<"找零点高速:  "<<F_Zero_HSpeed();
    //     // 读取找零点低速
    //     // m_Modbus->read_F_Zero_LSpeed_value();
    //     setF_Zero_LSpeed(m_Modbus->F_Zero_LSpeed);
    //     // qDebug()<<"找零点低速:  "<<F_Zero_LSpeed();
    //     // 读取加减速时间
    //     // m_Modbus->read_F_L_Speed_Time_value();
    //     setF_L_Speed_Time(m_Modbus->F_L_Speed_Time);
    //     // qDebug()<<"加减速时间:  "<<F_L_Speed_Time();
    //     // 读取刹车打开时间
    //     // m_Modbus->read_Brake_Open_Time_value();
    //     setBrake_Open_Time(m_Modbus->Brake_Open_Time);
    //     // qDebug()<<"刹车打开时间:  "<<Brake_Open_Time();
    //     // 读取刹车关闭延时
    //     // m_Modbus->read_Brake_Close_Delay_value();
    //     setBrake_Close_Delay(m_Modbus->Brake_Close_Delay);
    //     // qDebug()<<"刹车关闭延时:  "<<Brake_Close_Delay();
    //     // 读取当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // qDebug()<<"当前位置:  "<<currentLocation();
    //     // 读取编码器数据
    //     // m_Modbus->read_Encoder_Data_value();
    //     setEncoder_Data(m_Modbus->Encoder_Data);
    //     // qDebug()<<"编码器数据:  "<<Encoder_Data();
    //     break;
    // case 15:
    //     // qDebug()<<"当前位于 ； 托料设置界面";
    //     // 读取检测托料架是否存在
    //     // m_Modbus->read_TLJ_State_value();
    //     setTLJ_State(m_Modbus->TLJ_State);
    //     // qDebug()<<"托料件检测:  "<<TLJ_State();
    //     // 读取托料架安全距离
    //     // m_Modbus->read_TLJ_Safe_Distance_value();
    //     setTLJ_Safe_Distance(m_Modbus->TLJ_Safe_Distance);
    //     // qDebug()<<"托料架安全距离:  "<<TLJ_Safe_Distance();
    //     // 读取 - 前托退到位
    //     // m_Modbus->read_Q_TLJ_Over_value();
    //     setQ_TLJ_Over(m_Modbus->Q_TLJ_Over);
    //     // qDebug()<<"前托料架:   "<<Q_TLJ_Over();
    //     // 读取 - 中托退到位
    //     // m_Modbus->read_Z_TLJ_Over_value();
    //     setZ_TLJ_Over(m_Modbus->Z_TLJ_Over);
    //     // qDebug()<<"中托料架:   "<<Z_TLJ_Over();
    //     // 读取 - 后托退到位
    //     // m_Modbus->read_H_TLJ_Over_value();
    //     setH_TLJ_Over(m_Modbus->H_TLJ_Over);
    //     // qDebug()<<"后托料架:   "<<H_TLJ_Over();
    //     // 读取前托料架位置
    //     // m_Modbus->read_Q_TLJ_Location_value();
    //     setQ_TLJ_Location(m_Modbus->Q_TLJ_Location);
    //     // qDebug()<<"前托料位置:  "<<Q_TLJ_Location();
    //     // 读取前托料架使能
    //     // m_Modbus->read_Q_TLJ_Enable_value();
    //     setQTLJ_Enable(m_Modbus->Q_TLJ_Enable);
    //     // qDebug()<<"前托料使能:  "<<QTLJ_Enable();
    //     // 读取前托料架0大于1小于
    //     // m_Modbus->read_Q_TLJ_LSState_value();
    //     setQ_TLJ_LSSate(m_Modbus->Q_TLJ_LS_State);
    //     // qDebug()<<"前托料架 0 大于 1 小于:   "<<Q_TLJ_LSSate();
    //     // 读取中托料架下限
    //     // m_Modbus->read_Z_TLJ_Down_Limit_value();
    //     setZ_TLJ_Down_Limit(m_Modbus->Z_TLJ_Down_Limit);
    //     // qDebug()<<"中托料下限:   "<<Z_TLJ_Down_Limit();
    //     // 读取中托料架上限
    //     // m_Modbus->read_Z_TLJ_Up_Limit_value();
    //     setZ_TLJ_Up_Limit(m_Modbus->Z_TLJ_Up_Limit);
    //     // qDebug()<<"中托料上限:   "<<Z_TLJ_Up_Limit();
    //     // 读取中托料架使能
    //     // m_Modbus->read_Z_TLJ_Enable_value();
    //     setZ_TLJ_Enable(m_Modbus->Z_TLJ_Enable);
    //     // qDebug()<<"中托料架使能:   "<<Z_TLJ_Enable();
    //     // 读取后托料架位置
    //     // m_Modbus->read_H_TLJ_Location_value();
    //     setH_TLJ_Location(m_Modbus->H_TLJ_Location);
    //     // qDebug()<<"后托料架位置:   "<<H_TLJ_Location();
    //     // 读取后托料架使能
    //     // m_Modbus->read_H_TLJ_Enable_value();
    //     setHTLJ_Enable(m_Modbus->H_TLJ_Enable);
    //     // qDebug()<<"后托料架使能:   "<<HTLJ_Enable();
    //     // 读取后托料架0大于1小于
    //     // m_Modbus->read_H_TLJ_LS_State_value();
    //     setH_TLJ_LS_State(m_Modbus->H_TLJ_LS_State);
    //     // qDebug()<<"后托料架 0 大于 1 小于"<<H_TLJ_LS_State();
    //     // 读取当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // 读取X轴当前位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     break;
    // case 16:
    //     // qDebug()<<"当前位于 : 位置补偿界面";
    //     // 当前位置
    //     // m_Modbus->read_CurrentLocation_value();
    //     setCurrentLocation(m_Modbus->CurrentLocation);
    //     // 当前X轴位置
    //     // m_Modbus->read_XAxisCurrentLocation_value();
    //     setXAxisCurrentLocation(m_Modbus->XAxisCurrentLocation);
    //     // 料长设定
    //     // m_Modbus->read_LCSetting_value();
    //     setLC_value(m_Modbus->LC_value);
    //     // 位置补偿
    //     // m_Modbus->read_Location_Compensate_values();
    //     setLocation_Compensate01(m_Modbus->Location_Compensate01);
    //     setLocation_Compensate02(m_Modbus->Location_Compensate02);
    //     setLocation_Compensate03(m_Modbus->Location_Compensate03);
    //     setLocation_Compensate04(m_Modbus->Location_Compensate04);
    //     setLocation_Compensate05(m_Modbus->Location_Compensate05);
    //     setLocation_Compensate06(m_Modbus->Location_Compensate06);
    //     setLocation_Compensate07(m_Modbus->Location_Compensate07);
    //     setLocation_Compensate08(m_Modbus->Location_Compensate08);
    //     setLocation_Compensate09(m_Modbus->Location_Compensate09);
    //     setLocation_Compensate10(m_Modbus->Location_Compensate10);
    //     setLocation_Compensate11(m_Modbus->Location_Compensate11);
    //     setLocation_Compensate12(m_Modbus->Location_Compensate12);
    //     setLocation_Compensate13(m_Modbus->Location_Compensate13);
    //     setLocation_Compensate14(m_Modbus->Location_Compensate14);
    //     setLocation_Compensate15(m_Modbus->Location_Compensate15);
    //     setLocation_Compensate16(m_Modbus->Location_Compensate16);
    //     setLocation_Compensate17(m_Modbus->Location_Compensate17);
    //     setLocation_Compensate18(m_Modbus->Location_Compensate18);
    //     setLocation_Compensate19(m_Modbus->Location_Compensate19);
    //     setLocation_Compensate20(m_Modbus->Location_Compensate20);
    //     // 摆角专补
    //     // m_Modbus->read_BJ_Location_Compensate_values();
    //     setLocation_DownLimit_BJ(m_Modbus->Location_DownLimit_BJ);
    //     setLocation_UpLimit_BJ(m_Modbus->Location_UpLimit_BJ);
    //     setLocation_Compensate_BJ(m_Modbus->Location_Compensate_BJ);
    //     // 摆角专补开关
    //     // m_Modbus->read_BJZB_Btn_value();
    //     setBJZB_Btn(m_Modbus->BJZB_Btn);
    //     break;
    // case 17:
    //     // qDebug()<<"当前位于 : 任意位置补偿界面";
    //     // m_Modbus->read_Location_Compensate_Any_values();
    //     setLocation_DownLimit01_Any(m_Modbus->Location_DownLimit01_Any);
    //     setLocation_DownLimit02_Any(m_Modbus->Location_DownLimit02_Any);
    //     setLocation_DownLimit03_Any(m_Modbus->Location_DownLimit03_Any);
    //     setLocation_DownLimit04_Any(m_Modbus->Location_DownLimit04_Any);
    //     setLocation_DownLimit05_Any(m_Modbus->Location_DownLimit05_Any);
    //     setLocation_DownLimit06_Any(m_Modbus->Location_DownLimit06_Any);
    //     setLocation_DownLimit07_Any(m_Modbus->Location_DownLimit07_Any);
    //     setLocation_DownLimit08_Any(m_Modbus->Location_DownLimit08_Any);
    //     setLocation_DownLimit09_Any(m_Modbus->Location_DownLimit09_Any);
    //     setLocation_DownLimit10_Any(m_Modbus->Location_DownLimit10_Any);
    //     setLocation_DownLimit11_Any(m_Modbus->Location_DownLimit11_Any);
    //     setLocation_DownLimit12_Any(m_Modbus->Location_DownLimit12_Any);
    //     setLocation_DownLimit13_Any(m_Modbus->Location_DownLimit13_Any);
    //     setLocation_DownLimit14_Any(m_Modbus->Location_DownLimit14_Any);
    //     setLocation_DownLimit15_Any(m_Modbus->Location_DownLimit15_Any);
    //     setLocation_DownLimit16_Any(m_Modbus->Location_DownLimit16_Any);
    //     setLocation_DownLimit17_Any(m_Modbus->Location_DownLimit17_Any);
    //     setLocation_DownLimit18_Any(m_Modbus->Location_DownLimit18_Any);
    //     setLocation_DownLimit19_Any(m_Modbus->Location_DownLimit19_Any);
    //     setLocation_DownLimit20_Any(m_Modbus->Location_DownLimit20_Any);

    //     setLocation_UpLimit01_Any(m_Modbus->Location_UpLimit01_Any);
    //     setLocation_UpLimit02_Any(m_Modbus->Location_UpLimit02_Any);
    //     setLocation_UpLimit03_Any(m_Modbus->Location_UpLimit03_Any);
    //     setLocation_UpLimit04_Any(m_Modbus->Location_UpLimit04_Any);
    //     setLocation_UpLimit05_Any(m_Modbus->Location_UpLimit05_Any);
    //     setLocation_UpLimit06_Any(m_Modbus->Location_UpLimit06_Any);
    //     setLocation_UpLimit07_Any(m_Modbus->Location_UpLimit07_Any);
    //     setLocation_UpLimit08_Any(m_Modbus->Location_UpLimit08_Any);
    //     setLocation_UpLimit09_Any(m_Modbus->Location_UpLimit09_Any);
    //     setLocation_UpLimit10_Any(m_Modbus->Location_UpLimit10_Any);
    //     setLocation_UpLimit11_Any(m_Modbus->Location_UpLimit11_Any);
    //     setLocation_UpLimit12_Any(m_Modbus->Location_UpLimit12_Any);
    //     setLocation_UpLimit13_Any(m_Modbus->Location_UpLimit13_Any);
    //     setLocation_UpLimit14_Any(m_Modbus->Location_UpLimit14_Any);
    //     setLocation_UpLimit15_Any(m_Modbus->Location_UpLimit15_Any);
    //     setLocation_UpLimit16_Any(m_Modbus->Location_UpLimit16_Any);
    //     setLocation_UpLimit17_Any(m_Modbus->Location_UpLimit17_Any);
    //     setLocation_UpLimit18_Any(m_Modbus->Location_UpLimit18_Any);
    //     setLocation_UpLimit19_Any(m_Modbus->Location_UpLimit19_Any);
    //     setLocation_UpLimit20_Any(m_Modbus->Location_UpLimit20_Any);

    //     setLocation_Compensate01_Any(m_Modbus->Location_Compensate01_Any);
    //     setLocation_Compensate02_Any(m_Modbus->Location_Compensate02_Any);
    //     setLocation_Compensate03_Any(m_Modbus->Location_Compensate03_Any);
    //     setLocation_Compensate04_Any(m_Modbus->Location_Compensate04_Any);
    //     setLocation_Compensate05_Any(m_Modbus->Location_Compensate05_Any);
    //     setLocation_Compensate06_Any(m_Modbus->Location_Compensate06_Any);
    //     setLocation_Compensate07_Any(m_Modbus->Location_Compensate07_Any);
    //     setLocation_Compensate08_Any(m_Modbus->Location_Compensate08_Any);
    //     setLocation_Compensate09_Any(m_Modbus->Location_Compensate09_Any);
    //     setLocation_Compensate10_Any(m_Modbus->Location_Compensate10_Any);
    //     setLocation_Compensate11_Any(m_Modbus->Location_Compensate11_Any);
    //     setLocation_Compensate12_Any(m_Modbus->Location_Compensate12_Any);
    //     setLocation_Compensate13_Any(m_Modbus->Location_Compensate13_Any);
    //     setLocation_Compensate14_Any(m_Modbus->Location_Compensate14_Any);
    //     setLocation_Compensate15_Any(m_Modbus->Location_Compensate15_Any);
    //     setLocation_Compensate16_Any(m_Modbus->Location_Compensate16_Any);
    //     setLocation_Compensate17_Any(m_Modbus->Location_Compensate17_Any);
    //     setLocation_Compensate18_Any(m_Modbus->Location_Compensate18_Any);
    //     setLocation_Compensate19_Any(m_Modbus->Location_Compensate19_Any);
    //     setLocation_Compensate20_Any(m_Modbus->Location_Compensate20_Any);

    //     // m_Modbus->read_Compensate_Btn_Any_values();
    //     setCompensateBtn01_Any(m_Modbus->CompensateBtn01_Any);
    //     setCompensateBtn02_Any(m_Modbus->CompensateBtn02_Any);
    //     setCompensateBtn03_Any(m_Modbus->CompensateBtn03_Any);
    //     setCompensateBtn04_Any(m_Modbus->CompensateBtn04_Any);
    //     setCompensateBtn05_Any(m_Modbus->CompensateBtn05_Any);
    //     setCompensateBtn06_Any(m_Modbus->CompensateBtn06_Any);
    //     setCompensateBtn07_Any(m_Modbus->CompensateBtn07_Any);
    //     setCompensateBtn08_Any(m_Modbus->CompensateBtn08_Any);
    //     setCompensateBtn09_Any(m_Modbus->CompensateBtn09_Any);
    //     setCompensateBtn10_Any(m_Modbus->CompensateBtn10_Any);
    //     setCompensateBtn11_Any(m_Modbus->CompensateBtn11_Any);
    //     setCompensateBtn12_Any(m_Modbus->CompensateBtn12_Any);
    //     setCompensateBtn13_Any(m_Modbus->CompensateBtn13_Any);
    //     setCompensateBtn14_Any(m_Modbus->CompensateBtn14_Any);
    //     setCompensateBtn15_Any(m_Modbus->CompensateBtn15_Any);
    //     setCompensateBtn16_Any(m_Modbus->CompensateBtn16_Any);
    //     setCompensateBtn17_Any(m_Modbus->CompensateBtn17_Any);
    //     setCompensateBtn18_Any(m_Modbus->CompensateBtn18_Any);
    //     setCompensateBtn19_Any(m_Modbus->CompensateBtn19_Any);
    //     setCompensateBtn20_Any(m_Modbus->CompensateBtn20_Any);
    //     break;
    // case 18:
    //     // qDebug()<<"当前位于 : 密码修改界面";
    //     break;
    // case 19:
    //     // qDebug()<<"当前位于 : 设备配置界面";
    //     // 读取工进时间
    //     // m_Modbus->read_GJTIME_Mode_State();
    //     setGJTIME_Mode(m_Modbus->GJTIME_Mode);
    //     // 拉手功能是否存在
    //     // m_Modbus->read_LS_Exist_value();
    //     setLS_Exist(m_Modbus->LS_Exist);
    //     // 45度专切
    //     // m_Modbus->read_Angle45_Mode_value();
    //     setAngle45_Mode(m_Modbus->Angle45_Mode);
    //     // 打印机有无
    //     // m_Modbus->read_Printer_Exist_value();
    //     setPrinter_Exist(m_Modbus->Printer_Exist);
    //     // 伺服类型
    //     // m_Modbus->read_Servo_Mode_value();
    //     setServo_Mode(m_Modbus->Servo_Mode);
    //     // 托料架有无
    //     // m_Modbus->read_TLJ_Exist_value();
    //     setTLJ_Exist(m_Modbus->TLJ_Exist);
    //     // 锯片选择有无
    //     // m_Modbus->read_SawChoose_Mode_State();
    //     setSawChoose_Mode(m_Modbus->SawChoose_Mode);
    //     // 旋钮功能
    //     // m_Modbus->read_Knob_Program_value();
    //     setKnob_Program(m_Modbus->Knob_Program);
    //     // 自动测高功能
    //     // m_Modbus->read_Auto_Observe_Exist_value();
    //     setAutoObserve_Exist(m_Modbus->AutoObserve_Exist);
    //     // 限位开关
    //     // m_Modbus->read_Limit_Btn_value();
    //     setLimitBtn_Mode(m_Modbus->LimitBtn_Mode);
    //     // 读取内外摆模式 内摆1 外摆0
    //     // m_Modbus->read_NB_WB_value();
    //     setNBWB_Mode(m_Modbus->NBWB_Mode);
    //     // 机头旋钮常开
    //     // m_Modbus->read_JT_Knob_Mode_value();
    //     setJT_Knob_Mode(m_Modbus->JT_Knob_Mode);
    //     // 电磁阀断电不断电
    //     // m_Modbus->reaed_DCF_Power_Mode_value();
    //     setDCF_Power_Mode(m_Modbus->DCF_Power_Mode);
    //     // 急停按钮模式
    //     // m_Modbus->read_Scram_Mode_value();
    //     setScram_Mode(m_Modbus->Scram_Mode);
    //     // 编码器位数
    //     // m_Modbus->read_Encoder_Mode_value();
    //     setEncoder_Mode(m_Modbus->Encoder_Mode);
    //     // 伺服报警模式
    //     // m_Modbus->read_Servo_Warning_Mode_value();
    //     setServo_Warning_Mode(m_Modbus->Servo_Warning_Mode);

    //     // 双锯延时
    //     // m_Modbus->read_DoubleSaw_Open_value();
    //     setDoubleSaw_Open(m_Modbus->DoubleSaw_Open);
    //     // 双锯延时时间
    //     // m_Modbus->read_DoubleSaw_Delay_value();
    //     setDoubleSaw_Delay(m_Modbus->DoubleSaw_Delay);

    //     break;
    // default:
    //     // qDebug()<<"当前无事发生";
    //     break;
    // }


}


QString ConnectManager::LG_value() const
{
    return m_LG_value;
}

void ConnectManager::setLG_value(const QString &newLG_value)
{
    if (m_LG_value == newLG_value)
        return;
    m_LG_value = newLG_value;
    emit LG_valueChanged();
}

int ConnectManager::pageNumber() const
{
    return m_pageNumber;
}

void ConnectManager::setPageNumber(int newPageNumber)
{
    if (m_pageNumber == newPageNumber)
        return;
    m_pageNumber = newPageNumber;
    emit pageNumberChanged();
}

QString ConnectManager::currentLocation() const
{
    return m_currentLocation;
}

void ConnectManager::setCurrentLocation(const QString &newCurrentLocation)
{
    if (m_currentLocation == newCurrentLocation)
        return;
    m_currentLocation = newCurrentLocation;
    emit currentLocationChanged();
}

QString ConnectManager::xAxisCurrentLocation() const
{
    return m_xAxisCurrentLocation;
}

void ConnectManager::setXAxisCurrentLocation(const QString &newXAxisCurrentLocation)
{
    if (m_xAxisCurrentLocation == newXAxisCurrentLocation)
        return;
    m_xAxisCurrentLocation = newXAxisCurrentLocation;
    emit xAxisCurrentLocationChanged();
}

QString ConnectManager::currentSectiones() const
{
    return m_currentSectiones;
}

void ConnectManager::setCurrentSectiones(const QString &newCurrentSectiones)
{
    if (m_currentSectiones == newCurrentSectiones)
        return;
    m_currentSectiones = newCurrentSectiones;
    emit currentSectionesChanged();
}

QString ConnectManager::LC_value() const
{
    return m_LC_value;
}

void ConnectManager::setLC_value(const QString &newLC_value)
{
    if (m_LC_value == newLC_value)
        return;
    m_LC_value = newLC_value;
    emit LC_valueChanged();
}

QString ConnectManager::section_Set() const
{
    return m_section_Set;
}

void ConnectManager::setSection_Set(const QString &newSection_Set)
{
    if (m_section_Set == newSection_Set)
        return;
    m_section_Set = newSection_Set;
    emit section_SetChanged();
}

QString ConnectManager::LG_observe() const
{
    return m_LG_observe;
}

void ConnectManager::setLG_observe(const QString &newLG_observe)
{
    if (m_LG_observe == newLG_observe)
        return;
    m_LG_observe = newLG_observe;
    emit LG_observeChanged();
}

QString ConnectManager::ExtraLong_LC() const
{
    return m_ExtraLong_LC;
}

void ConnectManager::setExtraLong_LC(const QString &newExtraLong_LC)
{
    if (m_ExtraLong_LC == newExtraLong_LC)
        return;
    m_ExtraLong_LC = newExtraLong_LC;
    emit ExtraLong_LCChanged();
}

QString ConnectManager::MechineLocation() const
{
    return m_MechineLocation;
}

void ConnectManager::setMechineLocation(const QString &newMechineLocation)
{
    if (m_MechineLocation == newMechineLocation)
        return;
    m_MechineLocation = newMechineLocation;
    emit MechineLocationChanged();
}

QString ConnectManager::ExtraLongCompensate() const
{
    return m_ExtraLongCompensate;
}

void ConnectManager::setExtraLongCompensate(const QString &newExtraLongCompensate)
{
    if (m_ExtraLongCompensate == newExtraLongCompensate)
        return;
    m_ExtraLongCompensate = newExtraLongCompensate;
    emit ExtraLongCompensateChanged();
}

QString ConnectManager::ExtraShort_LC() const
{
    return m_ExtraShort_LC;
}

void ConnectManager::setExtraShort_LC(const QString &newExtraShort_LC)
{
    if (m_ExtraShort_LC == newExtraShort_LC)
        return;
    m_ExtraShort_LC = newExtraShort_LC;
    emit ExtraShort_LCChanged();
}

QString ConnectManager::HL_Distance() const
{
    return m_HL_Distance;
}

void ConnectManager::setHL_Distance(const QString &newHL_Distance)
{
    if (m_HL_Distance == newHL_Distance)
        return;
    m_HL_Distance = newHL_Distance;
    emit HL_DistanceChanged();
}

QString ConnectManager::ExtraShortCompensate() const
{
    return m_ExtraShortCompensate;
}

void ConnectManager::setExtraShortCompensate(const QString &newExtraShortCompensate)
{
    if (m_ExtraShortCompensate == newExtraShortCompensate)
        return;
    m_ExtraShortCompensate = newExtraShortCompensate;
    emit ExtraShortCompensateChanged();
}

bool ConnectManager::leftSawAngle() const
{
    return m_leftSawAngle;
}

void ConnectManager::setLeftSawAngle(bool newLeftSawAngle)
{
    if (m_leftSawAngle == newLeftSawAngle)
        return;
    m_leftSawAngle = newLeftSawAngle;
    emit leftSawAngleChanged();
}

bool ConnectManager::rightSawAngle() const
{
    return m_rightSawAngle;
}

void ConnectManager::setRightSawAngle(bool newRightSawAngle)
{
    if (m_rightSawAngle == newRightSawAngle)
        return;
    m_rightSawAngle = newRightSawAngle;
    emit rightSawAngleChanged();
}

QString ConnectManager::knobMode() const
{
    return m_knobMode;
}

void ConnectManager::setKnobMode(const QString &newKnobMode)
{
    if (m_knobMode == newKnobMode)
        return;
    m_knobMode = newKnobMode;
    emit knobModeChanged();
}

bool ConnectManager::leftSawQW() const
{
    return m_leftSawQW;
}

void ConnectManager::setLeftSawQW(bool newLeftSawQW)
{
    if (m_leftSawQW == newLeftSawQW)
        return;
    m_leftSawQW = newLeftSawQW;
    emit leftSawQWChanged();
}

bool ConnectManager::leftSawHW() const
{
    return m_leftSawHW;
}

void ConnectManager::setLeftSawHW(bool newLeftSawHW)
{
    if (m_leftSawHW == newLeftSawHW)
        return;
    m_leftSawHW = newLeftSawHW;
    emit leftSawHWChanged();
}

bool ConnectManager::rightSawQW() const
{
    return m_rightSawQW;
}

void ConnectManager::setRightSawQW(bool newRightSawQW)
{
    if (m_rightSawQW == newRightSawQW)
        return;
    m_rightSawQW = newRightSawQW;
    emit rightSawQWChanged();
}

bool ConnectManager::rightSawHW() const
{
    return m_rightSawHW;
}

void ConnectManager::setRightSawHW(bool newRightSawHW)
{
    if (m_rightSawHW == newRightSawHW)
        return;
    m_rightSawHW = newRightSawHW;
    emit rightSawHWChanged();
}

QString ConnectManager::OriginValue() const
{
    return m_OriginValue;
}

void ConnectManager::setOriginValue(const QString &newOriginValue)
{
    if (m_OriginValue == newOriginValue)
        return;
    m_OriginValue = newOriginValue;
    emit OriginValueChanged();
}

QString ConnectManager::NB_SafeLocation() const
{
    return m_NB_SafeLocation;
}

void ConnectManager::setNB_SafeLocation(const QString &newNB_SafeLocation)
{
    if (m_NB_SafeLocation == newNB_SafeLocation)
        return;
    m_NB_SafeLocation = newNB_SafeLocation;
    emit NB_SafeLocationChanged();
}

bool ConnectManager::NBWB_Mode() const
{
    return m_NBWB_Mode;
}

void ConnectManager::setNBWB_Mode(bool newNBWB_Mode)
{
    if (m_NBWB_Mode == newNBWB_Mode)
        return;
    m_NBWB_Mode = newNBWB_Mode;
    emit NBWB_ModeChanged();
}

QString ConnectManager::ExtraShort_D_Limit() const
{
    return m_ExtraShort_D_Limit;
}

void ConnectManager::setExtraShort_D_Limit(const QString &newExtraShort_D_Limit)
{
    if (m_ExtraShort_D_Limit == newExtraShort_D_Limit)
        return;
    m_ExtraShort_D_Limit = newExtraShort_D_Limit;
    emit ExtraShort_D_LimitChanged();
}

QString ConnectManager::ExtraShort_U_Limit() const
{
    return m_ExtraShort_U_Limit;
}

void ConnectManager::setExtraShort_U_Limit(const QString &newExtraShort_U_Limit)
{
    if (m_ExtraShort_U_Limit == newExtraShort_U_Limit)
        return;
    m_ExtraShort_U_Limit = newExtraShort_U_Limit;
    emit ExtraShort_U_LimitChanged();
}



QString ConnectManager::LS_Location() const
{
    return m_LS_Location;
}

void ConnectManager::setLS_Location(const QString &newLS_Location)
{
    if (m_LS_Location == newLS_Location)
        return;
    m_LS_Location = newLS_Location;
    emit LS_LocationChanged();
}

QString ConnectManager::LS_LocationCompensate() const
{
    return m_LS_LocationCompensate;
}

void ConnectManager::setLS_LocationCompensate(const QString &newLS_LocationCompensate)
{
    if (m_LS_LocationCompensate == newLS_LocationCompensate)
        return;
    m_LS_LocationCompensate = newLS_LocationCompensate;
    emit LS_LocationCompensateChanged();
}

QString ConnectManager::LS_Width() const
{
    return m_LS_Width;
}

void ConnectManager::setLS_Width(const QString &newLS_Width)
{
    if (m_LS_Width == newLS_Width)
        return;
    m_LS_Width = newLS_Width;
    emit LS_WidthChanged();
}

int ConnectManager::knobLocation() const
{
    return m_knobLocation;
}

void ConnectManager::setKnobLocation(const int &newKnobLocation)
{
    if (m_knobLocation == newKnobLocation)
        return;
    m_knobLocation = newKnobLocation;
    emit knobLocationChanged();
}

QString ConnectManager::currentSectiones_JM() const
{
    return m_currentSectiones_JM;
}

void ConnectManager::setCurrentSectiones_JM(const QString &newCurrentSectiones_JM)
{
    if (m_currentSectiones_JM == newCurrentSectiones_JM)
        return;
    m_currentSectiones_JM = newCurrentSectiones_JM;
    emit currentSectiones_JMChanged();
}

QString ConnectManager::workedSectiones_JM() const
{
    return m_workedSectiones_JM;
}

void ConnectManager::setWorkedSectiones_JM(const QString &newWorkedSectiones_JM)
{
    if (m_workedSectiones_JM == newWorkedSectiones_JM)
        return;
    m_workedSectiones_JM = newWorkedSectiones_JM;
    emit workedSectiones_JMChanged();
}

QString ConnectManager::MiniLongth_JM() const
{
    return m_MiniLongth_JM;
}

void ConnectManager::setMiniLongth_JM(const QString &newMiniLongth_JM)
{
    if (m_MiniLongth_JM == newMiniLongth_JM)
        return;
    m_MiniLongth_JM = newMiniLongth_JM;
    emit MiniLongth_JMChanged();
}

QString ConnectManager::MaterialLong_JM() const
{
    return m_MaterialLong_JM;
}

void ConnectManager::setMaterialLong_JM(const QString &newMaterialLong_JM)
{
    if (m_MaterialLong_JM == newMaterialLong_JM)
        return;
    m_MaterialLong_JM = newMaterialLong_JM;
    emit MaterialLong_JMChanged();
}

QString ConnectManager::JMLongth_JM() const
{
    return m_JMLongth_JM;
}

void ConnectManager::setJMLongth_JM(const QString &newJMLongth_JM)
{
    if (m_JMLongth_JM == newJMLongth_JM)
        return;
    m_JMLongth_JM = newJMLongth_JM;
    emit JMLongth_JMChanged();
}

QString ConnectManager::JMSectiones() const
{
    return m_JMSectiones;
}

void ConnectManager::setJMSectiones(const QString &newJMSectiones)
{
    if (m_JMSectiones == newJMSectiones)
        return;
    m_JMSectiones = newJMSectiones;
    emit JMSectionesChanged();
}

QString ConnectManager::DB_JM() const
{
    return m_DB_JM;
}

void ConnectManager::setDB_JM(const QString &newDB_JM)
{
    if (m_DB_JM == newDB_JM)
        return;
    m_DB_JM = newDB_JM;
    emit DB_JMChanged();
}

bool ConnectManager::JMLongthErr_JM() const
{
    return m_JMLongthErr_JM;
}

void ConnectManager::setJMLongthErr_JM(bool newJMLongthErr_JM)
{
    if (m_JMLongthErr_JM == newJMLongthErr_JM)
        return;
    m_JMLongthErr_JM = newJMLongthErr_JM;
    emit JMLongthErr_JMChanged();
}

bool ConnectManager::LGObserveState() const
{
    return m_LGObserveState;
}

void ConnectManager::setLGObserveState(bool newLGObserveState)
{
    if (m_LGObserveState == newLGObserveState)
        return;
    m_LGObserveState = newLGObserveState;
    emit LGObserveStateChanged();
}

QString ConnectManager::LocationSpeed() const
{
    return m_LocationSpeed;
}

void ConnectManager::setLocationSpeed(const QString &newLocationSpeed)
{
    if (m_LocationSpeed == newLocationSpeed)
        return;
    m_LocationSpeed = newLocationSpeed;
    emit LocationSpeedChanged();
}

QString ConnectManager::ManualSpeed() const
{
    return m_ManualSpeed;
}

void ConnectManager::setManualSpeed(const QString &newManualSpeed)
{
    if (m_ManualSpeed == newManualSpeed)
        return;
    m_ManualSpeed = newManualSpeed;
    emit ManualSpeedChanged();
}

QString ConnectManager::ImpactTime() const
{
    return m_ImpactTime;
}

void ConnectManager::setImpactTime(const QString &newImpactTime)
{
    if (m_ImpactTime == newImpactTime)
        return;
    m_ImpactTime = newImpactTime;
    emit ImpactTimeChanged();
}

QString ConnectManager::LeftSaw_GJTime() const
{
    return m_LeftSaw_GJTime;
}

void ConnectManager::setLeftSaw_GJTime(const QString &newLeftSaw_GJTime)
{
    if (m_LeftSaw_GJTime == newLeftSaw_GJTime)
        return;
    m_LeftSaw_GJTime = newLeftSaw_GJTime;
    emit LeftSaw_GJTimeChanged();
}

QString ConnectManager::RightSaw_GJTime() const
{
    return m_RightSaw_GJTime;
}

void ConnectManager::setRightSaw_GJTime(const QString &newRightSaw_GJTime)
{
    if (m_RightSaw_GJTime == newRightSaw_GJTime)
        return;
    m_RightSaw_GJTime = newRightSaw_GJTime;
    emit RightSaw_GJTimeChanged();
}

QString ConnectManager::DoubleSaws45_Compensate() const
{
    return m_DoubleSaws45_Compensate;
}

void ConnectManager::setDoubleSaws45_Compensate(const QString &newDoubleSaws45_Compensate)
{
    if (m_DoubleSaws45_Compensate == newDoubleSaws45_Compensate)
        return;
    m_DoubleSaws45_Compensate = newDoubleSaws45_Compensate;
    emit DoubleSaws45_CompensateChanged();
}

QString ConnectManager::SingleSaw45_Compensate() const
{
    return m_SingleSaw45_Compensate;
}

void ConnectManager::setSingleSaw45_Compensate(const QString &newSingleSaw45_Compensate)
{
    if (m_SingleSaw45_Compensate == newSingleSaw45_Compensate)
        return;
    m_SingleSaw45_Compensate = newSingleSaw45_Compensate;
    emit SingleSaw45_CompensateChanged();
}

QString ConnectManager::SafeDistance() const
{
    return m_SafeDistance;
}

void ConnectManager::setSafeDistance(const QString &newSafeDistance)
{
    if (m_SafeDistance == newSafeDistance)
        return;
    m_SafeDistance = newSafeDistance;
    emit SafeDistanceChanged();
}

QString ConnectManager::LR_Blow_Time() const
{
    return m_LR_Blow_Time;
}

void ConnectManager::setLR_Blow_Time(const QString &newLR_Blow_Time)
{
    if (m_LR_Blow_Time == newLR_Blow_Time)
        return;
    m_LR_Blow_Time = newLR_Blow_Time;
    emit LR_Blow_TimeChanged();
}

QString ConnectManager::LG_Detection_Time() const
{
    return m_LG_Detection_Time;
}

void ConnectManager::setLG_Detection_Time(const QString &newLG_Detection_Time)
{
    if (m_LG_Detection_Time == newLG_Detection_Time)
        return;
    m_LG_Detection_Time = newLG_Detection_Time;
    emit LG_Detection_TimeChanged();
}

QString ConnectManager::LG_CC_DL() const
{
    return m_LG_CC_DL;
}

void ConnectManager::setLG_CC_DL(const QString &newLG_CC_DL)
{
    if (m_LG_CC_DL == newLG_CC_DL)
        return;
    m_LG_CC_DL = newLG_CC_DL;
    emit LG_CC_DLChanged();
}

QString ConnectManager::DCF_OutageDelay() const
{
    return m_DCF_OutageDelay;
}

void ConnectManager::setDCF_OutageDelay(const QString &newDCF_OutageDelay)
{
    if (m_DCF_OutageDelay == newDCF_OutageDelay)
        return;
    m_DCF_OutageDelay = newDCF_OutageDelay;
    emit DCF_OutageDelayChanged();
}

bool ConnectManager::AutoPrint() const
{
    return m_AutoPrint;
}

void ConnectManager::setAutoPrint(bool newAutoPrint)
{
    if (m_AutoPrint == newAutoPrint)
        return;
    m_AutoPrint = newAutoPrint;
    emit AutoPrintChanged();
}

bool ConnectManager::IO_Y0() const
{
    return m_IO_Y0;
}

void ConnectManager::setIO_Y0(bool newIO_Y0)
{
    if (m_IO_Y0 == newIO_Y0)
        return;
    m_IO_Y0 = newIO_Y0;
    emit IO_Y0Changed();
}

bool ConnectManager::IO_Y1() const
{
    return m_IO_Y1;
}

void ConnectManager::setIO_Y1(bool newIO_Y1)
{
    if (m_IO_Y1 == newIO_Y1)
        return;
    m_IO_Y1 = newIO_Y1;
    emit IO_Y1Changed();
}

bool ConnectManager::IO_Y2() const
{
    return m_IO_Y2;
}

void ConnectManager::setIO_Y2(bool newIO_Y2)
{
    if (m_IO_Y2 == newIO_Y2)
        return;
    m_IO_Y2 = newIO_Y2;
    emit IO_Y2Changed();
}

bool ConnectManager::IO_Y3() const
{
    return m_IO_Y3;
}

void ConnectManager::setIO_Y3(bool newIO_Y3)
{
    if (m_IO_Y3 == newIO_Y3)
        return;
    m_IO_Y3 = newIO_Y3;
    emit IO_Y3Changed();
}

bool ConnectManager::IO_Y4() const
{
    return m_IO_Y4;
}

void ConnectManager::setIO_Y4(bool newIO_Y4)
{
    if (m_IO_Y4 == newIO_Y4)
        return;
    m_IO_Y4 = newIO_Y4;
    emit IO_Y4Changed();
}

bool ConnectManager::IO_Y5() const
{
    return m_IO_Y5;
}

void ConnectManager::setIO_Y5(bool newIO_Y5)
{
    if (m_IO_Y5 == newIO_Y5)
        return;
    m_IO_Y5 = newIO_Y5;
    emit IO_Y5Changed();
}

bool ConnectManager::IO_Y6() const
{
    return m_IO_Y6;
}

void ConnectManager::setIO_Y6(bool newIO_Y6)
{
    if (m_IO_Y6 == newIO_Y6)
        return;
    m_IO_Y6 = newIO_Y6;
    emit IO_Y6Changed();
}

bool ConnectManager::IO_Y7() const
{
    return m_IO_Y7;
}

void ConnectManager::setIO_Y7(bool newIO_Y7)
{
    if (m_IO_Y7 == newIO_Y7)
        return;
    m_IO_Y7 = newIO_Y7;
    emit IO_Y7Changed();
}

bool ConnectManager::IO_Y10() const
{
    return m_IO_Y10;
}

void ConnectManager::setIO_Y10(bool newIO_Y10)
{
    if (m_IO_Y10 == newIO_Y10)
        return;
    m_IO_Y10 = newIO_Y10;
    emit IO_Y10Changed();
}

bool ConnectManager::IO_Y11() const
{
    return m_IO_Y11;
}

void ConnectManager::setIO_Y11(bool newIO_Y11)
{
    if (m_IO_Y11 == newIO_Y11)
        return;
    m_IO_Y11 = newIO_Y11;
    emit IO_Y11Changed();
}

bool ConnectManager::IO_Y12() const
{
    return m_IO_Y12;
}

void ConnectManager::setIO_Y12(bool newIO_Y12)
{
    if (m_IO_Y12 == newIO_Y12)
        return;
    m_IO_Y12 = newIO_Y12;
    emit IO_Y12Changed();
}

bool ConnectManager::IO_Y13() const
{
    return m_IO_Y13;
}

void ConnectManager::setIO_Y13(bool newIO_Y13)
{
    if (m_IO_Y13 == newIO_Y13)
        return;
    m_IO_Y13 = newIO_Y13;
    emit IO_Y13Changed();
}

bool ConnectManager::IO_Y14() const
{
    return m_IO_Y14;
}

void ConnectManager::setIO_Y14(bool newIO_Y14)
{
    if (m_IO_Y14 == newIO_Y14)
        return;
    m_IO_Y14 = newIO_Y14;
    emit IO_Y14Changed();
}

bool ConnectManager::IO_Y15() const
{
    return m_IO_Y15;
}

void ConnectManager::setIO_Y15(bool newIO_Y15)
{
    if (m_IO_Y15 == newIO_Y15)
        return;
    m_IO_Y15 = newIO_Y15;
    emit IO_Y15Changed();
}

bool ConnectManager::IO_Y16() const
{
    return m_IO_Y16;
}

void ConnectManager::setIO_Y16(bool newIO_Y16)
{
    if (m_IO_Y16 == newIO_Y16)
        return;
    m_IO_Y16 = newIO_Y16;
    emit IO_Y16Changed();
}

bool ConnectManager::IO_Y17() const
{
    return m_IO_Y17;
}

void ConnectManager::setIO_Y17(bool newIO_Y17)
{
    if (m_IO_Y17 == newIO_Y17)
        return;
    m_IO_Y17 = newIO_Y17;
    emit IO_Y17Changed();
}

bool ConnectManager::IO_Y20() const
{
    return m_IO_Y20;
}

void ConnectManager::setIO_Y20(bool newIO_Y20)
{
    if (m_IO_Y20 == newIO_Y20)
        return;
    m_IO_Y20 = newIO_Y20;
    emit IO_Y20Changed();
}

bool ConnectManager::IO_Y21() const
{
    return m_IO_Y21;
}

void ConnectManager::setIO_Y21(bool newIO_Y21)
{
    if (m_IO_Y21 == newIO_Y21)
        return;
    m_IO_Y21 = newIO_Y21;
    emit IO_Y21Changed();
}

bool ConnectManager::IO_Y22() const
{
    return m_IO_Y22;
}

void ConnectManager::setIO_Y22(bool newIO_Y22)
{
    if (m_IO_Y22 == newIO_Y22)
        return;
    m_IO_Y22 = newIO_Y22;
    emit IO_Y22Changed();
}

bool ConnectManager::IO_Y23() const
{
    return m_IO_Y23;
}

void ConnectManager::setIO_Y23(bool newIO_Y23)
{
    if (m_IO_Y23 == newIO_Y23)
        return;
    m_IO_Y23 = newIO_Y23;
    emit IO_Y23Changed();
}

bool ConnectManager::IO_Y25() const
{
    return m_IO_Y25;
}

void ConnectManager::setIO_Y25(bool newIO_Y25)
{
    if (m_IO_Y25 == newIO_Y25)
        return;
    m_IO_Y25 = newIO_Y25;
    emit IO_Y25Changed();
}

bool ConnectManager::IO_X0() const
{
    return m_IO_X0;
}

void ConnectManager::setIO_X0(bool newIO_X0)
{
    if (m_IO_X0 == newIO_X0)
        return;
    m_IO_X0 = newIO_X0;
    emit IO_X0Changed();
}

bool ConnectManager::IO_X1() const
{
    return m_IO_X1;
}

void ConnectManager::setIO_X1(bool newIO_X1)
{
    if (m_IO_X1 == newIO_X1)
        return;
    m_IO_X1 = newIO_X1;
    emit IO_X1Changed();
}

bool ConnectManager::IO_X2() const
{
    return m_IO_X2;
}

void ConnectManager::setIO_X2(bool newIO_X2)
{
    if (m_IO_X2 == newIO_X2)
        return;
    m_IO_X2 = newIO_X2;
    emit IO_X2Changed();
}

bool ConnectManager::IO_X3() const
{
    return m_IO_X3;
}

void ConnectManager::setIO_X3(bool newIO_X3)
{
    if (m_IO_X3 == newIO_X3)
        return;
    m_IO_X3 = newIO_X3;
    emit IO_X3Changed();
}

bool ConnectManager::IO_X5() const
{
    return m_IO_X5;
}

void ConnectManager::setIO_X5(bool newIO_X5)
{
    if (m_IO_X5 == newIO_X5)
        return;
    m_IO_X5 = newIO_X5;
    emit IO_X5Changed();
}

bool ConnectManager::IO_X6() const
{
    return m_IO_X6;
}

void ConnectManager::setIO_X6(bool newIO_X6)
{
    if (m_IO_X6 == newIO_X6)
        return;
    m_IO_X6 = newIO_X6;
    emit IO_X6Changed();
}

bool ConnectManager::IO_X7() const
{
    return m_IO_X7;
}

void ConnectManager::setIO_X7(bool newIO_X7)
{
    if (m_IO_X7 == newIO_X7)
        return;
    m_IO_X7 = newIO_X7;
    emit IO_X7Changed();
}

bool ConnectManager::IO_X10() const
{
    return m_IO_X10;
}

void ConnectManager::setIO_X10(bool newIO_X10)
{
    if (m_IO_X10 == newIO_X10)
        return;
    m_IO_X10 = newIO_X10;
    emit IO_X10Changed();
}

bool ConnectManager::IO_X11() const
{
    return m_IO_X11;
}

void ConnectManager::setIO_X11(bool newIO_X11)
{
    if (m_IO_X11 == newIO_X11)
        return;
    m_IO_X11 = newIO_X11;
    emit IO_X11Changed();
}

bool ConnectManager::IO_X16() const
{
    return m_IO_X16;
}

void ConnectManager::setIO_X16(bool newIO_X16)
{
    if (m_IO_X16 == newIO_X16)
        return;
    m_IO_X16 = newIO_X16;
    emit IO_X16Changed();
}

bool ConnectManager::IO_X17() const
{
    return m_IO_X17;
}

void ConnectManager::setIO_X17(bool newIO_X17)
{
    if (m_IO_X17 == newIO_X17)
        return;
    m_IO_X17 = newIO_X17;
    emit IO_X17Changed();
}

bool ConnectManager::IO_X20() const
{
    return m_IO_X20;
}

void ConnectManager::setIO_X20(bool newIO_X20)
{
    if (m_IO_X20 == newIO_X20)
        return;
    m_IO_X20 = newIO_X20;
    emit IO_X20Changed();
}

bool ConnectManager::IO_X21() const
{
    return m_IO_X21;
}

void ConnectManager::setIO_X21(bool newIO_X21)
{
    if (m_IO_X21 == newIO_X21)
        return;
    m_IO_X21 = newIO_X21;
    emit IO_X21Changed();
}

bool ConnectManager::IO_X22() const
{
    return m_IO_X22;
}

void ConnectManager::setIO_X22(bool newIO_X22)
{
    if (m_IO_X22 == newIO_X22)
        return;
    m_IO_X22 = newIO_X22;
    emit IO_X22Changed();
}

bool ConnectManager::IO_X23() const
{
    return m_IO_X23;
}

void ConnectManager::setIO_X23(bool newIO_X23)
{
    if (m_IO_X23 == newIO_X23)
        return;
    m_IO_X23 = newIO_X23;
    emit IO_X23Changed();
}

bool ConnectManager::IO_X24() const
{
    return m_IO_X24;
}

void ConnectManager::setIO_X24(bool newIO_X24)
{
    if (m_IO_X24 == newIO_X24)
        return;
    m_IO_X24 = newIO_X24;
    emit IO_X24Changed();
}

bool ConnectManager::IO_X25() const
{
    return m_IO_X25;
}

void ConnectManager::setIO_X25(bool newIO_X25)
{
    if (m_IO_X25 == newIO_X25)
        return;
    m_IO_X25 = newIO_X25;
    emit IO_X25Changed();
}

QString ConnectManager::Per_Pulse_Count() const
{
    return m_Per_Pulse_Count;
}

void ConnectManager::setPer_Pulse_Count(const QString &newPer_Pulse_Count)
{
    if (m_Per_Pulse_Count == newPer_Pulse_Count)
        return;
    m_Per_Pulse_Count = newPer_Pulse_Count;
    emit Per_Pulse_CountChanged();
}

QString ConnectManager::Per_Move_Distance() const
{
    return m_Per_Move_Distance;
}

void ConnectManager::setPer_Move_Distance(const QString &newPer_Move_Distance)
{
    if (m_Per_Move_Distance == newPer_Move_Distance)
        return;
    m_Per_Move_Distance = newPer_Move_Distance;
    emit Per_Move_DistanceChanged();
}

QString ConnectManager::Max_Cut_Longth() const
{
    return m_Max_Cut_Longth;
}

void ConnectManager::setMax_Cut_Longth(const QString &newMax_Cut_Longth)
{
    if (m_Max_Cut_Longth == newMax_Cut_Longth)
        return;
    m_Max_Cut_Longth = newMax_Cut_Longth;
    emit Max_Cut_LongthChanged();
}

QString ConnectManager::R_Limit() const
{
    return m_R_Limit;
}

void ConnectManager::setR_Limit(const QString &newR_Limit)
{
    if (m_R_Limit == newR_Limit)
        return;
    m_R_Limit = newR_Limit;
    emit R_LimitChanged();
}

QString ConnectManager::F_Zero_HSpeed() const
{
    return m_F_Zero_HSpeed;
}

void ConnectManager::setF_Zero_HSpeed(const QString &newF_Zero_HSpeed)
{
    if (m_F_Zero_HSpeed == newF_Zero_HSpeed)
        return;
    m_F_Zero_HSpeed = newF_Zero_HSpeed;
    emit F_Zero_HSpeedChanged();
}

QString ConnectManager::F_Zero_LSpeed() const
{
    return m_F_Zero_LSpeed;
}

void ConnectManager::setF_Zero_LSpeed(const QString &newF_Zero_LSpeed)
{
    if (m_F_Zero_LSpeed == newF_Zero_LSpeed)
        return;
    m_F_Zero_LSpeed = newF_Zero_LSpeed;
    emit F_Zero_LSpeedChanged();
}

QString ConnectManager::F_L_Speed_Time() const
{
    return m_F_L_Speed_Time;
}

void ConnectManager::setF_L_Speed_Time(const QString &newF_L_Speed_Time)
{
    if (m_F_L_Speed_Time == newF_L_Speed_Time)
        return;
    m_F_L_Speed_Time = newF_L_Speed_Time;
    emit F_L_Speed_TimeChanged();
}

QString ConnectManager::Brake_Open_Time() const
{
    return m_Brake_Open_Time;
}

void ConnectManager::setBrake_Open_Time(const QString &newBrake_Open_Time)
{
    if (m_Brake_Open_Time == newBrake_Open_Time)
        return;
    m_Brake_Open_Time = newBrake_Open_Time;
    emit Brake_Open_TimeChanged();
}

QString ConnectManager::Brake_Close_Delay() const
{
    return m_Brake_Close_Delay;
}

void ConnectManager::setBrake_Close_Delay(const QString &newBrake_Close_Delay)
{
    if (m_Brake_Close_Delay == newBrake_Close_Delay)
        return;
    m_Brake_Close_Delay = newBrake_Close_Delay;
    emit Brake_Close_DelayChanged();
}

QString ConnectManager::Encoder_Data() const
{
    return m_Encoder_Data;
}

void ConnectManager::setEncoder_Data(const QString &newEncoder_Data)
{
    if (m_Encoder_Data == newEncoder_Data)
        return;
    m_Encoder_Data = newEncoder_Data;
    emit Encoder_DataChanged();
}

bool ConnectManager::TLJ_State() const
{
    return m_TLJ_State;
}

void ConnectManager::setTLJ_State(bool newTLJ_State)
{
    if (m_TLJ_State == newTLJ_State)
        return;
    m_TLJ_State = newTLJ_State;
    emit TLJ_StateChanged();
}

QString ConnectManager::TLJ_Safe_Distance() const
{
    return m_TLJ_Safe_Distance;
}

void ConnectManager::setTLJ_Safe_Distance(const QString &newTLJ_Safe_Distance)
{
    if (m_TLJ_Safe_Distance == newTLJ_Safe_Distance)
        return;
    m_TLJ_Safe_Distance = newTLJ_Safe_Distance;
    emit TLJ_Safe_DistanceChanged();
}

QString ConnectManager::Q_TLJ_Location() const
{
    return m_Q_TLJ_Location;
}

void ConnectManager::setQ_TLJ_Location(const QString &newQ_TLJ_Location)
{
    if (m_Q_TLJ_Location == newQ_TLJ_Location)
        return;
    m_Q_TLJ_Location = newQ_TLJ_Location;
    emit Q_TLJ_LocationChanged();
}

QString ConnectManager::Z_TLJ_Down_Limit() const
{
    return m_Z_TLJ_Down_Limit;
}

void ConnectManager::setZ_TLJ_Down_Limit(const QString &newZ_TLJ_Down_Limit)
{
    if (m_Z_TLJ_Down_Limit == newZ_TLJ_Down_Limit)
        return;
    m_Z_TLJ_Down_Limit = newZ_TLJ_Down_Limit;
    emit Z_TLJ_Down_LimitChanged();
}

QString ConnectManager::Z_TLJ_Up_Limit() const
{
    return m_Z_TLJ_Up_Limit;
}

void ConnectManager::setZ_TLJ_Up_Limit(const QString &newZ_TLJ_Up_Limit)
{
    if (m_Z_TLJ_Up_Limit == newZ_TLJ_Up_Limit)
        return;
    m_Z_TLJ_Up_Limit = newZ_TLJ_Up_Limit;
    emit Z_TLJ_Up_LimitChanged();
}

QString ConnectManager::H_TLJ_Location() const
{
    return m_H_TLJ_Location;
}

void ConnectManager::setH_TLJ_Location(const QString &newH_TLJ_Location)
{
    if (m_H_TLJ_Location == newH_TLJ_Location)
        return;
    m_H_TLJ_Location = newH_TLJ_Location;
    emit H_TLJ_LocationChanged();
}

bool ConnectManager::QTLJ_Enable() const
{
    return m_QTLJ_Enable;
}

void ConnectManager::setQTLJ_Enable(bool newQTLJ_Enable)
{
    if (m_QTLJ_Enable == newQTLJ_Enable)
        return;
    m_QTLJ_Enable = newQTLJ_Enable;
    emit QTLJ_EnableChanged();
}

bool ConnectManager::Q_TLJ_LSSate() const
{
    return m_Q_TLJ_LSSate;
}

void ConnectManager::setQ_TLJ_LSSate(bool newQ_TLJ_LSSate)
{
    if (m_Q_TLJ_LSSate == newQ_TLJ_LSSate)
        return;
    m_Q_TLJ_LSSate = newQ_TLJ_LSSate;
    emit Q_TLJ_LSSateChanged();
}


bool ConnectManager::Z_TLJ_Enable() const
{
    return m_Z_TLJ_Enable;
}

void ConnectManager::setZ_TLJ_Enable(bool newZ_TLJ_Enable)
{
    if (m_Z_TLJ_Enable == newZ_TLJ_Enable)
        return;
    m_Z_TLJ_Enable = newZ_TLJ_Enable;
    emit Z_TLJ_EnableChanged();
}

bool ConnectManager::HTLJ_Enable() const
{
    return m_HTLJ_Enable;
}

void ConnectManager::setHTLJ_Enable(bool newHTLJ_Enable)
{
    if (m_HTLJ_Enable == newHTLJ_Enable)
        return;
    m_HTLJ_Enable = newHTLJ_Enable;
    emit HTLJ_EnableChanged();
}

bool ConnectManager::H_TLJ_LS_State() const
{
    return m_H_TLJ_LS_State;
}

void ConnectManager::setH_TLJ_LS_State(bool newH_TLJ_LS_State)
{
    if (m_H_TLJ_LS_State == newH_TLJ_LS_State)
        return;
    m_H_TLJ_LS_State = newH_TLJ_LS_State;
    emit H_TLJ_LS_StateChanged();
}


bool ConnectManager::Q_TLJ_Over() const
{
    return m_Q_TLJ_Over;
}

void ConnectManager::setQ_TLJ_Over(bool newQ_TLJ_Over)
{
    if (m_Q_TLJ_Over == newQ_TLJ_Over)
        return;
    m_Q_TLJ_Over = newQ_TLJ_Over;
    emit Q_TLJ_OverChanged();
}

bool ConnectManager::Z_TLJ_Over() const
{
    return m_Z_TLJ_Over;
}

void ConnectManager::setZ_TLJ_Over(bool newZ_TLJ_Over)
{
    if (m_Z_TLJ_Over == newZ_TLJ_Over)
        return;
    m_Z_TLJ_Over = newZ_TLJ_Over;
    emit Z_TLJ_OverChanged();
}

bool ConnectManager::H_TLJ_Over() const
{
    return m_H_TLJ_Over;
}

void ConnectManager::setH_TLJ_Over(bool newH_TLJ_Over)
{
    if (m_H_TLJ_Over == newH_TLJ_Over)
        return;
    m_H_TLJ_Over = newH_TLJ_Over;
    emit H_TLJ_OverChanged();
}

QString ConnectManager::Location_Compensate01() const
{
    return m_Location_Compensate01;
}

void ConnectManager::setLocation_Compensate01(const QString &newLocation_Compensate01)
{
    if (m_Location_Compensate01 == newLocation_Compensate01)
        return;
    m_Location_Compensate01 = newLocation_Compensate01;
    emit Location_Compensate01Changed();
}

QString ConnectManager::Location_Compensate02() const
{
    return m_Location_Compensate02;
}

void ConnectManager::setLocation_Compensate02(const QString &newLocation_Compensate02)
{
    if (m_Location_Compensate02 == newLocation_Compensate02)
        return;
    m_Location_Compensate02 = newLocation_Compensate02;
    emit Location_Compensate02Changed();
}

QString ConnectManager::Location_Compensate03() const
{
    return m_Location_Compensate03;
}

void ConnectManager::setLocation_Compensate03(const QString &newLocation_Compensate03)
{
    if (m_Location_Compensate03 == newLocation_Compensate03)
        return;
    m_Location_Compensate03 = newLocation_Compensate03;
    emit Location_Compensate03Changed();
}

QString ConnectManager::Location_Compensate04() const
{
    return m_Location_Compensate04;
}

void ConnectManager::setLocation_Compensate04(const QString &newLocation_Compensate04)
{
    if (m_Location_Compensate04 == newLocation_Compensate04)
        return;
    m_Location_Compensate04 = newLocation_Compensate04;
    emit Location_Compensate04Changed();
}

QString ConnectManager::Location_Compensate05() const
{
    return m_Location_Compensate05;
}

void ConnectManager::setLocation_Compensate05(const QString &newLocation_Compensate05)
{
    if (m_Location_Compensate05 == newLocation_Compensate05)
        return;
    m_Location_Compensate05 = newLocation_Compensate05;
    emit Location_Compensate05Changed();
}

QString ConnectManager::Location_Compensate06() const
{
    return m_Location_Compensate06;
}

void ConnectManager::setLocation_Compensate06(const QString &newLocation_Compensate06)
{
    if (m_Location_Compensate06 == newLocation_Compensate06)
        return;
    m_Location_Compensate06 = newLocation_Compensate06;
    emit Location_Compensate06Changed();
}

QString ConnectManager::Location_Compensate07() const
{
    return m_Location_Compensate07;
}

void ConnectManager::setLocation_Compensate07(const QString &newLocation_Compensate07)
{
    if (m_Location_Compensate07 == newLocation_Compensate07)
        return;
    m_Location_Compensate07 = newLocation_Compensate07;
    emit Location_Compensate07Changed();
}

QString ConnectManager::Location_Compensate08() const
{
    return m_Location_Compensate08;
}

void ConnectManager::setLocation_Compensate08(const QString &newLocation_Compensate08)
{
    if (m_Location_Compensate08 == newLocation_Compensate08)
        return;
    m_Location_Compensate08 = newLocation_Compensate08;
    emit Location_Compensate08Changed();
}

QString ConnectManager::Location_Compensate09() const
{
    return m_Location_Compensate09;
}

void ConnectManager::setLocation_Compensate09(const QString &newLocation_Compensate09)
{
    if (m_Location_Compensate09 == newLocation_Compensate09)
        return;
    m_Location_Compensate09 = newLocation_Compensate09;
    emit Location_Compensate09Changed();
}

QString ConnectManager::Location_Compensate10() const
{
    return m_Location_Compensate10;
}

void ConnectManager::setLocation_Compensate10(const QString &newLocation_Compensate10)
{
    if (m_Location_Compensate10 == newLocation_Compensate10)
        return;
    m_Location_Compensate10 = newLocation_Compensate10;
    emit Location_Compensate10Changed();
}

QString ConnectManager::Location_Compensate11() const
{
    return m_Location_Compensate11;
}

void ConnectManager::setLocation_Compensate11(const QString &newLocation_Compensate11)
{
    if (m_Location_Compensate11 == newLocation_Compensate11)
        return;
    m_Location_Compensate11 = newLocation_Compensate11;
    emit Location_Compensate11Changed();
}

QString ConnectManager::Location_Compensate12() const
{
    return m_Location_Compensate12;
}

void ConnectManager::setLocation_Compensate12(const QString &newLocation_Compensate12)
{
    if (m_Location_Compensate12 == newLocation_Compensate12)
        return;
    m_Location_Compensate12 = newLocation_Compensate12;
    emit Location_Compensate12Changed();
}

QString ConnectManager::Location_Compensate13() const
{
    return m_Location_Compensate13;
}

void ConnectManager::setLocation_Compensate13(const QString &newLocation_Compensate13)
{
    if (m_Location_Compensate13 == newLocation_Compensate13)
        return;
    m_Location_Compensate13 = newLocation_Compensate13;
    emit Location_Compensate13Changed();
}

QString ConnectManager::Location_Compensate14() const
{
    return m_Location_Compensate14;
}

void ConnectManager::setLocation_Compensate14(const QString &newLocation_Compensate14)
{
    if (m_Location_Compensate14 == newLocation_Compensate14)
        return;
    m_Location_Compensate14 = newLocation_Compensate14;
    emit Location_Compensate14Changed();
}

QString ConnectManager::Location_Compensate15() const
{
    return m_Location_Compensate15;
}

void ConnectManager::setLocation_Compensate15(const QString &newLocation_Compensate15)
{
    if (m_Location_Compensate15 == newLocation_Compensate15)
        return;
    m_Location_Compensate15 = newLocation_Compensate15;
    emit Location_Compensate15Changed();
}

QString ConnectManager::Location_Compensate16() const
{
    return m_Location_Compensate16;
}

void ConnectManager::setLocation_Compensate16(const QString &newLocation_Compensate16)
{
    if (m_Location_Compensate16 == newLocation_Compensate16)
        return;
    m_Location_Compensate16 = newLocation_Compensate16;
    emit Location_Compensate16Changed();
}

QString ConnectManager::Location_Compensate17() const
{
    return m_Location_Compensate17;
}

void ConnectManager::setLocation_Compensate17(const QString &newLocation_Compensate17)
{
    if (m_Location_Compensate17 == newLocation_Compensate17)
        return;
    m_Location_Compensate17 = newLocation_Compensate17;
    emit Location_Compensate17Changed();
}

QString ConnectManager::Location_Compensate18() const
{
    return m_Location_Compensate18;
}

void ConnectManager::setLocation_Compensate18(const QString &newLocation_Compensate18)
{
    if (m_Location_Compensate18 == newLocation_Compensate18)
        return;
    m_Location_Compensate18 = newLocation_Compensate18;
    emit Location_Compensate18Changed();
}

QString ConnectManager::Location_Compensate19() const
{
    return m_Location_Compensate19;
}

void ConnectManager::setLocation_Compensate19(const QString &newLocation_Compensate19)
{
    if (m_Location_Compensate19 == newLocation_Compensate19)
        return;
    m_Location_Compensate19 = newLocation_Compensate19;
    emit Location_Compensate19Changed();
}

QString ConnectManager::Location_Compensate20() const
{
    return m_Location_Compensate20;
}

void ConnectManager::setLocation_Compensate20(const QString &newLocation_Compensate20)
{
    if (m_Location_Compensate20 == newLocation_Compensate20)
        return;
    m_Location_Compensate20 = newLocation_Compensate20;
    emit Location_Compensate20Changed();
}

QString ConnectManager::Location_Compensate_BJ() const
{
    return m_Location_Compensate_BJ;
}

void ConnectManager::setLocation_Compensate_BJ(const QString &newLocation_Compensate_BJ)
{
    if (m_Location_Compensate_BJ == newLocation_Compensate_BJ)
        return;
    m_Location_Compensate_BJ = newLocation_Compensate_BJ;
    emit Location_Compensate_BJChanged();
}

QString ConnectManager::Location_DownLimit_BJ() const
{
    return m_Location_DownLimit_BJ;
}

void ConnectManager::setLocation_DownLimit_BJ(const QString &newLocation_DownLimit_BJ)
{
    if (m_Location_DownLimit_BJ == newLocation_DownLimit_BJ)
        return;
    m_Location_DownLimit_BJ = newLocation_DownLimit_BJ;
    emit Location_DownLimit_BJChanged();
}

QString ConnectManager::Location_UpLimit_BJ() const
{
    return m_Location_UpLimit_BJ;
}

void ConnectManager::setLocation_UpLimit_BJ(const QString &newLocation_UpLimit_BJ)
{
    if (m_Location_UpLimit_BJ == newLocation_UpLimit_BJ)
        return;
    m_Location_UpLimit_BJ = newLocation_UpLimit_BJ;
    emit Location_UpLimit_BJChanged();
}

bool ConnectManager::BJZB_Btn() const
{
    return m_BJZB_Btn;
}

void ConnectManager::setBJZB_Btn(bool newBJZB_Btn)
{
    if (m_BJZB_Btn == newBJZB_Btn)
        return;
    m_BJZB_Btn = newBJZB_Btn;
    emit BJZB_BtnChanged();
}

QString ConnectManager::Location_DownLimit01_Any() const
{
    return m_Location_DownLimit01_Any;
}

void ConnectManager::setLocation_DownLimit01_Any(const QString &newLocation_DownLimit01_Any)
{
    if (m_Location_DownLimit01_Any == newLocation_DownLimit01_Any)
        return;
    m_Location_DownLimit01_Any = newLocation_DownLimit01_Any;
    emit Location_DownLimit01_AnyChanged();
}

QString ConnectManager::Location_DownLimit02_Any() const
{
    return m_Location_DownLimit02_Any;
}

void ConnectManager::setLocation_DownLimit02_Any(const QString &newLocation_DownLimit02_Any)
{
    if (m_Location_DownLimit02_Any == newLocation_DownLimit02_Any)
        return;
    m_Location_DownLimit02_Any = newLocation_DownLimit02_Any;
    emit Location_DownLimit02_AnyChanged();
}

QString ConnectManager::Location_DownLimit03_Any() const
{
    return m_Location_DownLimit03_Any;
}

void ConnectManager::setLocation_DownLimit03_Any(const QString &newLocation_DownLimit03_Any)
{
    if (m_Location_DownLimit03_Any == newLocation_DownLimit03_Any)
        return;
    m_Location_DownLimit03_Any = newLocation_DownLimit03_Any;
    emit Location_DownLimit03_AnyChanged();
}

QString ConnectManager::Location_DownLimit04_Any() const
{
    return m_Location_DownLimit04_Any;
}

void ConnectManager::setLocation_DownLimit04_Any(const QString &newLocation_DownLimit04_Any)
{
    if (m_Location_DownLimit04_Any == newLocation_DownLimit04_Any)
        return;
    m_Location_DownLimit04_Any = newLocation_DownLimit04_Any;
    emit Location_DownLimit04_AnyChanged();
}

QString ConnectManager::Location_DownLimit05_Any() const
{
    return m_Location_DownLimit05_Any;
}

void ConnectManager::setLocation_DownLimit05_Any(const QString &newLocation_DownLimit05_Any)
{
    if (m_Location_DownLimit05_Any == newLocation_DownLimit05_Any)
        return;
    m_Location_DownLimit05_Any = newLocation_DownLimit05_Any;
    emit Location_DownLimit05_AnyChanged();
}

QString ConnectManager::Location_DownLimit06_Any() const
{
    return m_Location_DownLimit06_Any;
}

void ConnectManager::setLocation_DownLimit06_Any(const QString &newLocation_DownLimit06_Any)
{
    if (m_Location_DownLimit06_Any == newLocation_DownLimit06_Any)
        return;
    m_Location_DownLimit06_Any = newLocation_DownLimit06_Any;
    emit Location_DownLimit06_AnyChanged();
}

QString ConnectManager::Location_DownLimit07_Any() const
{
    return m_Location_DownLimit07_Any;
}

void ConnectManager::setLocation_DownLimit07_Any(const QString &newLocation_DownLimit07_Any)
{
    if (m_Location_DownLimit07_Any == newLocation_DownLimit07_Any)
        return;
    m_Location_DownLimit07_Any = newLocation_DownLimit07_Any;
    emit Location_DownLimit07_AnyChanged();
}

QString ConnectManager::Location_DownLimit08_Any() const
{
    return m_Location_DownLimit08_Any;
}

void ConnectManager::setLocation_DownLimit08_Any(const QString &newLocation_DownLimit08_Any)
{
    if (m_Location_DownLimit08_Any == newLocation_DownLimit08_Any)
        return;
    m_Location_DownLimit08_Any = newLocation_DownLimit08_Any;
    emit Location_DownLimit08_AnyChanged();
}

QString ConnectManager::Location_DownLimit09_Any() const
{
    return m_Location_DownLimit09_Any;
}

void ConnectManager::setLocation_DownLimit09_Any(const QString &newLocation_DownLimit09_Any)
{
    if (m_Location_DownLimit09_Any == newLocation_DownLimit09_Any)
        return;
    m_Location_DownLimit09_Any = newLocation_DownLimit09_Any;
    emit Location_DownLimit09_AnyChanged();
}

QString ConnectManager::Location_DownLimit10_Any() const
{
    return m_Location_DownLimit10_Any;
}

void ConnectManager::setLocation_DownLimit10_Any(const QString &newLocation_DownLimit10_Any)
{
    if (m_Location_DownLimit10_Any == newLocation_DownLimit10_Any)
        return;
    m_Location_DownLimit10_Any = newLocation_DownLimit10_Any;
    emit Location_DownLimit10_AnyChanged();
}

QString ConnectManager::Location_DownLimit11_Any() const
{
    return m_Location_DownLimit11_Any;
}

void ConnectManager::setLocation_DownLimit11_Any(const QString &newLocation_DownLimit11_Any)
{
    if (m_Location_DownLimit11_Any == newLocation_DownLimit11_Any)
        return;
    m_Location_DownLimit11_Any = newLocation_DownLimit11_Any;
    emit Location_DownLimit11_AnyChanged();
}

QString ConnectManager::Location_DownLimit12_Any() const
{
    return m_Location_DownLimit12_Any;
}

void ConnectManager::setLocation_DownLimit12_Any(const QString &newLocation_DownLimit12_Any)
{
    if (m_Location_DownLimit12_Any == newLocation_DownLimit12_Any)
        return;
    m_Location_DownLimit12_Any = newLocation_DownLimit12_Any;
    emit Location_DownLimit12_AnyChanged();
}

QString ConnectManager::Location_DownLimit13_Any() const
{
    return m_Location_DownLimit13_Any;
}

void ConnectManager::setLocation_DownLimit13_Any(const QString &newLocation_DownLimit13_Any)
{
    if (m_Location_DownLimit13_Any == newLocation_DownLimit13_Any)
        return;
    m_Location_DownLimit13_Any = newLocation_DownLimit13_Any;
    emit Location_DownLimit13_AnyChanged();
}

QString ConnectManager::Location_DownLimit14_Any() const
{
    return m_Location_DownLimit14_Any;
}

void ConnectManager::setLocation_DownLimit14_Any(const QString &newLocation_DownLimit14_Any)
{
    if (m_Location_DownLimit14_Any == newLocation_DownLimit14_Any)
        return;
    m_Location_DownLimit14_Any = newLocation_DownLimit14_Any;
    emit Location_DownLimit14_AnyChanged();
}

QString ConnectManager::Location_DownLimit15_Any() const
{
    return m_Location_DownLimit15_Any;
}

void ConnectManager::setLocation_DownLimit15_Any(const QString &newLocation_DownLimit15_Any)
{
    if (m_Location_DownLimit15_Any == newLocation_DownLimit15_Any)
        return;
    m_Location_DownLimit15_Any = newLocation_DownLimit15_Any;
    emit Location_DownLimit15_AnyChanged();
}

QString ConnectManager::Location_DownLimit16_Any() const
{
    return m_Location_DownLimit16_Any;
}

void ConnectManager::setLocation_DownLimit16_Any(const QString &newLocation_DownLimit16_Any)
{
    if (m_Location_DownLimit16_Any == newLocation_DownLimit16_Any)
        return;
    m_Location_DownLimit16_Any = newLocation_DownLimit16_Any;
    emit Location_DownLimit16_AnyChanged();
}

QString ConnectManager::Location_DownLimit17_Any() const
{
    return m_Location_DownLimit17_Any;
}

void ConnectManager::setLocation_DownLimit17_Any(const QString &newLocation_DownLimit17_Any)
{
    if (m_Location_DownLimit17_Any == newLocation_DownLimit17_Any)
        return;
    m_Location_DownLimit17_Any = newLocation_DownLimit17_Any;
    emit Location_DownLimit17_AnyChanged();
}

QString ConnectManager::Location_DownLimit18_Any() const
{
    return m_Location_DownLimit18_Any;
}

void ConnectManager::setLocation_DownLimit18_Any(const QString &newLocation_DownLimit18_Any)
{
    if (m_Location_DownLimit18_Any == newLocation_DownLimit18_Any)
        return;
    m_Location_DownLimit18_Any = newLocation_DownLimit18_Any;
    emit Location_DownLimit18_AnyChanged();
}

QString ConnectManager::Location_DownLimit19_Any() const
{
    return m_Location_DownLimit19_Any;
}

void ConnectManager::setLocation_DownLimit19_Any(const QString &newLocation_DownLimit19_Any)
{
    if (m_Location_DownLimit19_Any == newLocation_DownLimit19_Any)
        return;
    m_Location_DownLimit19_Any = newLocation_DownLimit19_Any;
    emit Location_DownLimit19_AnyChanged();
}

QString ConnectManager::Location_DownLimit20_Any() const
{
    return m_Location_DownLimit20_Any;
}

void ConnectManager::setLocation_DownLimit20_Any(const QString &newLocation_DownLimit20_Any)
{
    if (m_Location_DownLimit20_Any == newLocation_DownLimit20_Any)
        return;
    m_Location_DownLimit20_Any = newLocation_DownLimit20_Any;
    emit Location_DownLimit20_AnyChanged();
}

QString ConnectManager::Location_UpLimit01_Any() const
{
    return m_Location_UpLimit01_Any;
}

void ConnectManager::setLocation_UpLimit01_Any(const QString &newLocation_UpLimit01_Any)
{
    if (m_Location_UpLimit01_Any == newLocation_UpLimit01_Any)
        return;
    m_Location_UpLimit01_Any = newLocation_UpLimit01_Any;
    emit Location_UpLimit01_AnyChanged();
}

QString ConnectManager::Location_UpLimit02_Any() const
{
    return m_Location_UpLimit02_Any;
}

void ConnectManager::setLocation_UpLimit02_Any(const QString &newLocation_UpLimit02_Any)
{
    if (m_Location_UpLimit02_Any == newLocation_UpLimit02_Any)
        return;
    m_Location_UpLimit02_Any = newLocation_UpLimit02_Any;
    emit Location_UpLimit02_AnyChanged();
}

QString ConnectManager::Location_UpLimit03_Any() const
{
    return m_Location_UpLimit03_Any;
}

void ConnectManager::setLocation_UpLimit03_Any(const QString &newLocation_UpLimit03_Any)
{
    if (m_Location_UpLimit03_Any == newLocation_UpLimit03_Any)
        return;
    m_Location_UpLimit03_Any = newLocation_UpLimit03_Any;
    emit Location_UpLimit03_AnyChanged();
}

QString ConnectManager::Location_UpLimit04_Any() const
{
    return m_Location_UpLimit04_Any;
}

void ConnectManager::setLocation_UpLimit04_Any(const QString &newLocation_UpLimit04_Any)
{
    if (m_Location_UpLimit04_Any == newLocation_UpLimit04_Any)
        return;
    m_Location_UpLimit04_Any = newLocation_UpLimit04_Any;
    emit Location_UpLimit04_AnyChanged();
}

QString ConnectManager::Location_UpLimit05_Any() const
{
    return m_Location_UpLimit05_Any;
}

void ConnectManager::setLocation_UpLimit05_Any(const QString &newLocation_UpLimit05_Any)
{
    if (m_Location_UpLimit05_Any == newLocation_UpLimit05_Any)
        return;
    m_Location_UpLimit05_Any = newLocation_UpLimit05_Any;
    emit Location_UpLimit05_AnyChanged();
}

QString ConnectManager::Location_UpLimit06_Any() const
{
    return m_Location_UpLimit06_Any;
}

void ConnectManager::setLocation_UpLimit06_Any(const QString &newLocation_UpLimit06_Any)
{
    if (m_Location_UpLimit06_Any == newLocation_UpLimit06_Any)
        return;
    m_Location_UpLimit06_Any = newLocation_UpLimit06_Any;
    emit Location_UpLimit06_AnyChanged();
}

QString ConnectManager::Location_UpLimit07_Any() const
{
    return m_Location_UpLimit07_Any;
}

void ConnectManager::setLocation_UpLimit07_Any(const QString &newLocation_UpLimit07_Any)
{
    if (m_Location_UpLimit07_Any == newLocation_UpLimit07_Any)
        return;
    m_Location_UpLimit07_Any = newLocation_UpLimit07_Any;
    emit Location_UpLimit07_AnyChanged();
}

QString ConnectManager::Location_UpLimit08_Any() const
{
    return m_Location_UpLimit08_Any;
}

void ConnectManager::setLocation_UpLimit08_Any(const QString &newLocation_UpLimit08_Any)
{
    if (m_Location_UpLimit08_Any == newLocation_UpLimit08_Any)
        return;
    m_Location_UpLimit08_Any = newLocation_UpLimit08_Any;
    emit Location_UpLimit08_AnyChanged();
}

QString ConnectManager::Location_UpLimit09_Any() const
{
    return m_Location_UpLimit09_Any;
}

void ConnectManager::setLocation_UpLimit09_Any(const QString &newLocation_UpLimit09_Any)
{
    if (m_Location_UpLimit09_Any == newLocation_UpLimit09_Any)
        return;
    m_Location_UpLimit09_Any = newLocation_UpLimit09_Any;
    emit Location_UpLimit09_AnyChanged();
}

QString ConnectManager::Location_UpLimit10_Any() const
{
    return m_Location_UpLimit10_Any;
}

void ConnectManager::setLocation_UpLimit10_Any(const QString &newLocation_UpLimit10_Any)
{
    if (m_Location_UpLimit10_Any == newLocation_UpLimit10_Any)
        return;
    m_Location_UpLimit10_Any = newLocation_UpLimit10_Any;
    emit Location_UpLimit10_AnyChanged();
}

QString ConnectManager::Location_UpLimit11_Any() const
{
    return m_Location_UpLimit11_Any;
}

void ConnectManager::setLocation_UpLimit11_Any(const QString &newLocation_UpLimit11_Any)
{
    if (m_Location_UpLimit11_Any == newLocation_UpLimit11_Any)
        return;
    m_Location_UpLimit11_Any = newLocation_UpLimit11_Any;
    emit Location_UpLimit11_AnyChanged();
}

QString ConnectManager::Location_UpLimit12_Any() const
{
    return m_Location_UpLimit12_Any;
}

void ConnectManager::setLocation_UpLimit12_Any(const QString &newLocation_UpLimit12_Any)
{
    if (m_Location_UpLimit12_Any == newLocation_UpLimit12_Any)
        return;
    m_Location_UpLimit12_Any = newLocation_UpLimit12_Any;
    emit Location_UpLimit12_AnyChanged();
}

QString ConnectManager::Location_UpLimit13_Any() const
{
    return m_Location_UpLimit13_Any;
}

void ConnectManager::setLocation_UpLimit13_Any(const QString &newLocation_UpLimit13_Any)
{
    if (m_Location_UpLimit13_Any == newLocation_UpLimit13_Any)
        return;
    m_Location_UpLimit13_Any = newLocation_UpLimit13_Any;
    emit Location_UpLimit13_AnyChanged();
}

QString ConnectManager::Location_UpLimit14_Any() const
{
    return m_Location_UpLimit14_Any;
}

void ConnectManager::setLocation_UpLimit14_Any(const QString &newLocation_UpLimit14_Any)
{
    if (m_Location_UpLimit14_Any == newLocation_UpLimit14_Any)
        return;
    m_Location_UpLimit14_Any = newLocation_UpLimit14_Any;
    emit Location_UpLimit14_AnyChanged();
}

QString ConnectManager::Location_UpLimit15_Any() const
{
    return m_Location_UpLimit15_Any;
}

void ConnectManager::setLocation_UpLimit15_Any(const QString &newLocation_UpLimit15_Any)
{
    if (m_Location_UpLimit15_Any == newLocation_UpLimit15_Any)
        return;
    m_Location_UpLimit15_Any = newLocation_UpLimit15_Any;
    emit Location_UpLimit15_AnyChanged();
}

QString ConnectManager::Location_UpLimit16_Any() const
{
    return m_Location_UpLimit16_Any;
}

void ConnectManager::setLocation_UpLimit16_Any(const QString &newLocation_UpLimit16_Any)
{
    if (m_Location_UpLimit16_Any == newLocation_UpLimit16_Any)
        return;
    m_Location_UpLimit16_Any = newLocation_UpLimit16_Any;
    emit Location_UpLimit16_AnyChanged();
}

QString ConnectManager::Location_UpLimit17_Any() const
{
    return m_Location_UpLimit17_Any;
}

void ConnectManager::setLocation_UpLimit17_Any(const QString &newLocation_UpLimit17_Any)
{
    if (m_Location_UpLimit17_Any == newLocation_UpLimit17_Any)
        return;
    m_Location_UpLimit17_Any = newLocation_UpLimit17_Any;
    emit Location_UpLimit17_AnyChanged();
}

QString ConnectManager::Location_UpLimit18_Any() const
{
    return m_Location_UpLimit18_Any;
}

void ConnectManager::setLocation_UpLimit18_Any(const QString &newLocation_UpLimit18_Any)
{
    if (m_Location_UpLimit18_Any == newLocation_UpLimit18_Any)
        return;
    m_Location_UpLimit18_Any = newLocation_UpLimit18_Any;
    emit Location_UpLimit18_AnyChanged();
}

QString ConnectManager::Location_UpLimit19_Any() const
{
    return m_Location_UpLimit19_Any;
}

void ConnectManager::setLocation_UpLimit19_Any(const QString &newLocation_UpLimit19_Any)
{
    if (m_Location_UpLimit19_Any == newLocation_UpLimit19_Any)
        return;
    m_Location_UpLimit19_Any = newLocation_UpLimit19_Any;
    emit Location_UpLimit19_AnyChanged();
}

QString ConnectManager::Location_UpLimit20_Any() const
{
    return m_Location_UpLimit20_Any;
}

void ConnectManager::setLocation_UpLimit20_Any(const QString &newLocation_UpLimit20_Any)
{
    if (m_Location_UpLimit20_Any == newLocation_UpLimit20_Any)
        return;
    m_Location_UpLimit20_Any = newLocation_UpLimit20_Any;
    emit Location_UpLimit20_AnyChanged();
}

QString ConnectManager::Location_Compensate01_Any() const
{
    return m_Location_Compensate01_Any;
}

void ConnectManager::setLocation_Compensate01_Any(const QString &newLocation_Compensate01_Any)
{
    if (m_Location_Compensate01_Any == newLocation_Compensate01_Any)
        return;
    m_Location_Compensate01_Any = newLocation_Compensate01_Any;
    emit Location_Compensate01_AnyChanged();
}

QString ConnectManager::Location_Compensate02_Any() const
{
    return m_Location_Compensate02_Any;
}

void ConnectManager::setLocation_Compensate02_Any(const QString &newLocation_Compensate02_Any)
{
    if (m_Location_Compensate02_Any == newLocation_Compensate02_Any)
        return;
    m_Location_Compensate02_Any = newLocation_Compensate02_Any;
    emit Location_Compensate02_AnyChanged();
}

QString ConnectManager::Location_Compensate03_Any() const
{
    return m_Location_Compensate03_Any;
}

void ConnectManager::setLocation_Compensate03_Any(const QString &newLocation_Compensate03_Any)
{
    if (m_Location_Compensate03_Any == newLocation_Compensate03_Any)
        return;
    m_Location_Compensate03_Any = newLocation_Compensate03_Any;
    emit Location_Compensate03_AnyChanged();
}

QString ConnectManager::Location_Compensate04_Any() const
{
    return m_Location_Compensate04_Any;
}

void ConnectManager::setLocation_Compensate04_Any(const QString &newLocation_Compensate04_Any)
{
    if (m_Location_Compensate04_Any == newLocation_Compensate04_Any)
        return;
    m_Location_Compensate04_Any = newLocation_Compensate04_Any;
    emit Location_Compensate04_AnyChanged();
}

QString ConnectManager::Location_Compensate05_Any() const
{
    return m_Location_Compensate05_Any;
}

void ConnectManager::setLocation_Compensate05_Any(const QString &newLocation_Compensate05_Any)
{
    if (m_Location_Compensate05_Any == newLocation_Compensate05_Any)
        return;
    m_Location_Compensate05_Any = newLocation_Compensate05_Any;
    emit Location_Compensate05_AnyChanged();
}

QString ConnectManager::Location_Compensate06_Any() const
{
    return m_Location_Compensate06_Any;
}

void ConnectManager::setLocation_Compensate06_Any(const QString &newLocation_Compensate06_Any)
{
    if (m_Location_Compensate06_Any == newLocation_Compensate06_Any)
        return;
    m_Location_Compensate06_Any = newLocation_Compensate06_Any;
    emit Location_Compensate06_AnyChanged();
}

QString ConnectManager::Location_Compensate07_Any() const
{
    return m_Location_Compensate07_Any;
}

void ConnectManager::setLocation_Compensate07_Any(const QString &newLocation_Compensate07_Any)
{
    if (m_Location_Compensate07_Any == newLocation_Compensate07_Any)
        return;
    m_Location_Compensate07_Any = newLocation_Compensate07_Any;
    emit Location_Compensate07_AnyChanged();
}

QString ConnectManager::Location_Compensate08_Any() const
{
    return m_Location_Compensate08_Any;
}

void ConnectManager::setLocation_Compensate08_Any(const QString &newLocation_Compensate08_Any)
{
    if (m_Location_Compensate08_Any == newLocation_Compensate08_Any)
        return;
    m_Location_Compensate08_Any = newLocation_Compensate08_Any;
    emit Location_Compensate08_AnyChanged();
}

QString ConnectManager::Location_Compensate09_Any() const
{
    return m_Location_Compensate09_Any;
}

void ConnectManager::setLocation_Compensate09_Any(const QString &newLocation_Compensate09_Any)
{
    if (m_Location_Compensate09_Any == newLocation_Compensate09_Any)
        return;
    m_Location_Compensate09_Any = newLocation_Compensate09_Any;
    emit Location_Compensate09_AnyChanged();
}

QString ConnectManager::Location_Compensate10_Any() const
{
    return m_Location_Compensate10_Any;
}

void ConnectManager::setLocation_Compensate10_Any(const QString &newLocation_Compensate10_Any)
{
    if (m_Location_Compensate10_Any == newLocation_Compensate10_Any)
        return;
    m_Location_Compensate10_Any = newLocation_Compensate10_Any;
    emit Location_Compensate10_AnyChanged();
}

QString ConnectManager::Location_Compensate11_Any() const
{
    return m_Location_Compensate11_Any;
}

void ConnectManager::setLocation_Compensate11_Any(const QString &newLocation_Compensate11_Any)
{
    if (m_Location_Compensate11_Any == newLocation_Compensate11_Any)
        return;
    m_Location_Compensate11_Any = newLocation_Compensate11_Any;
    emit Location_Compensate11_AnyChanged();
}

QString ConnectManager::Location_Compensate12_Any() const
{
    return m_Location_Compensate12_Any;
}

void ConnectManager::setLocation_Compensate12_Any(const QString &newLocation_Compensate12_Any)
{
    if (m_Location_Compensate12_Any == newLocation_Compensate12_Any)
        return;
    m_Location_Compensate12_Any = newLocation_Compensate12_Any;
    emit Location_Compensate12_AnyChanged();
}

QString ConnectManager::Location_Compensate13_Any() const
{
    return m_Location_Compensate13_Any;
}

void ConnectManager::setLocation_Compensate13_Any(const QString &newLocation_Compensate13_Any)
{
    if (m_Location_Compensate13_Any == newLocation_Compensate13_Any)
        return;
    m_Location_Compensate13_Any = newLocation_Compensate13_Any;
    emit Location_Compensate13_AnyChanged();
}

QString ConnectManager::Location_Compensate14_Any() const
{
    return m_Location_Compensate14_Any;
}

void ConnectManager::setLocation_Compensate14_Any(const QString &newLocation_Compensate14_Any)
{
    if (m_Location_Compensate14_Any == newLocation_Compensate14_Any)
        return;
    m_Location_Compensate14_Any = newLocation_Compensate14_Any;
    emit Location_Compensate14_AnyChanged();
}

QString ConnectManager::Location_Compensate15_Any() const
{
    return m_Location_Compensate15_Any;
}

void ConnectManager::setLocation_Compensate15_Any(const QString &newLocation_Compensate15_Any)
{
    if (m_Location_Compensate15_Any == newLocation_Compensate15_Any)
        return;
    m_Location_Compensate15_Any = newLocation_Compensate15_Any;
    emit Location_Compensate15_AnyChanged();
}

QString ConnectManager::Location_Compensate16_Any() const
{
    return m_Location_Compensate16_Any;
}

void ConnectManager::setLocation_Compensate16_Any(const QString &newLocation_Compensate16_Any)
{
    if (m_Location_Compensate16_Any == newLocation_Compensate16_Any)
        return;
    m_Location_Compensate16_Any = newLocation_Compensate16_Any;
    emit Location_Compensate16_AnyChanged();
}

QString ConnectManager::Location_Compensate17_Any() const
{
    return m_Location_Compensate17_Any;
}

void ConnectManager::setLocation_Compensate17_Any(const QString &newLocation_Compensate17_Any)
{
    if (m_Location_Compensate17_Any == newLocation_Compensate17_Any)
        return;
    m_Location_Compensate17_Any = newLocation_Compensate17_Any;
    emit Location_Compensate17_AnyChanged();
}

QString ConnectManager::Location_Compensate18_Any() const
{
    return m_Location_Compensate18_Any;
}

void ConnectManager::setLocation_Compensate18_Any(const QString &newLocation_Compensate18_Any)
{
    if (m_Location_Compensate18_Any == newLocation_Compensate18_Any)
        return;
    m_Location_Compensate18_Any = newLocation_Compensate18_Any;
    emit Location_Compensate18_AnyChanged();
}

QString ConnectManager::Location_Compensate19_Any() const
{
    return m_Location_Compensate19_Any;
}

void ConnectManager::setLocation_Compensate19_Any(const QString &newLocation_Compensate19_Any)
{
    if (m_Location_Compensate19_Any == newLocation_Compensate19_Any)
        return;
    m_Location_Compensate19_Any = newLocation_Compensate19_Any;
    emit Location_Compensate19_AnyChanged();
}

QString ConnectManager::Location_Compensate20_Any() const
{
    return m_Location_Compensate20_Any;
}

void ConnectManager::setLocation_Compensate20_Any(const QString &newLocation_Compensate20_Any)
{
    if (m_Location_Compensate20_Any == newLocation_Compensate20_Any)
        return;
    m_Location_Compensate20_Any = newLocation_Compensate20_Any;
    emit Location_Compensate20_AnyChanged();
}

bool ConnectManager::CompensateBtn01_Any() const
{
    return m_CompensateBtn01_Any;
}

void ConnectManager::setCompensateBtn01_Any(bool newCompensateBtn01_Any)
{
    if (m_CompensateBtn01_Any == newCompensateBtn01_Any)
        return;
    m_CompensateBtn01_Any = newCompensateBtn01_Any;
    emit CompensateBtn01_AnyChanged();
}

bool ConnectManager::CompensateBtn02_Any() const
{
    return m_CompensateBtn02_Any;
}

void ConnectManager::setCompensateBtn02_Any(bool newCompensateBtn02_Any)
{
    if (m_CompensateBtn02_Any == newCompensateBtn02_Any)
        return;
    m_CompensateBtn02_Any = newCompensateBtn02_Any;
    emit CompensateBtn02_AnyChanged();
}

bool ConnectManager::CompensateBtn03_Any() const
{
    return m_CompensateBtn03_Any;
}

void ConnectManager::setCompensateBtn03_Any(bool newCompensateBtn03_Any)
{
    if (m_CompensateBtn03_Any == newCompensateBtn03_Any)
        return;
    m_CompensateBtn03_Any = newCompensateBtn03_Any;
    emit CompensateBtn03_AnyChanged();
}

bool ConnectManager::CompensateBtn04_Any() const
{
    return m_CompensateBtn04_Any;
}

void ConnectManager::setCompensateBtn04_Any(bool newCompensateBtn04_Any)
{
    if (m_CompensateBtn04_Any == newCompensateBtn04_Any)
        return;
    m_CompensateBtn04_Any = newCompensateBtn04_Any;
    emit CompensateBtn04_AnyChanged();
}

bool ConnectManager::CompensateBtn05_Any() const
{
    return m_CompensateBtn05_Any;
}

void ConnectManager::setCompensateBtn05_Any(bool newCompensateBtn05_Any)
{
    if (m_CompensateBtn05_Any == newCompensateBtn05_Any)
        return;
    m_CompensateBtn05_Any = newCompensateBtn05_Any;
    emit CompensateBtn05_AnyChanged();
}

bool ConnectManager::CompensateBtn06_Any() const
{
    return m_CompensateBtn06_Any;
}

void ConnectManager::setCompensateBtn06_Any(bool newCompensateBtn06_Any)
{
    if (m_CompensateBtn06_Any == newCompensateBtn06_Any)
        return;
    m_CompensateBtn06_Any = newCompensateBtn06_Any;
    emit CompensateBtn06_AnyChanged();
}

bool ConnectManager::CompensateBtn07_Any() const
{
    return m_CompensateBtn07_Any;
}

void ConnectManager::setCompensateBtn07_Any(bool newCompensateBtn07_Any)
{
    if (m_CompensateBtn07_Any == newCompensateBtn07_Any)
        return;
    m_CompensateBtn07_Any = newCompensateBtn07_Any;
    emit CompensateBtn07_AnyChanged();
}

bool ConnectManager::CompensateBtn08_Any() const
{
    return m_CompensateBtn08_Any;
}

void ConnectManager::setCompensateBtn08_Any(bool newCompensateBtn08_Any)
{
    if (m_CompensateBtn08_Any == newCompensateBtn08_Any)
        return;
    m_CompensateBtn08_Any = newCompensateBtn08_Any;
    emit CompensateBtn08_AnyChanged();
}

bool ConnectManager::CompensateBtn09_Any() const
{
    return m_CompensateBtn09_Any;
}

void ConnectManager::setCompensateBtn09_Any(bool newCompensateBtn09_Any)
{
    if (m_CompensateBtn09_Any == newCompensateBtn09_Any)
        return;
    m_CompensateBtn09_Any = newCompensateBtn09_Any;
    emit CompensateBtn09_AnyChanged();
}

bool ConnectManager::CompensateBtn10_Any() const
{
    return m_CompensateBtn10_Any;
}

void ConnectManager::setCompensateBtn10_Any(bool newCompensateBtn10_Any)
{
    if (m_CompensateBtn10_Any == newCompensateBtn10_Any)
        return;
    m_CompensateBtn10_Any = newCompensateBtn10_Any;
    emit CompensateBtn10_AnyChanged();
}

bool ConnectManager::CompensateBtn11_Any() const
{
    return m_CompensateBtn11_Any;
}

void ConnectManager::setCompensateBtn11_Any(bool newCompensateBtn11_Any)
{
    if (m_CompensateBtn11_Any == newCompensateBtn11_Any)
        return;
    m_CompensateBtn11_Any = newCompensateBtn11_Any;
    emit CompensateBtn11_AnyChanged();
}

bool ConnectManager::CompensateBtn12_Any() const
{
    return m_CompensateBtn12_Any;
}

void ConnectManager::setCompensateBtn12_Any(bool newCompensateBtn12_Any)
{
    if (m_CompensateBtn12_Any == newCompensateBtn12_Any)
        return;
    m_CompensateBtn12_Any = newCompensateBtn12_Any;
    emit CompensateBtn12_AnyChanged();
}

bool ConnectManager::CompensateBtn13_Any() const
{
    return m_CompensateBtn13_Any;
}

void ConnectManager::setCompensateBtn13_Any(bool newCompensateBtn13_Any)
{
    if (m_CompensateBtn13_Any == newCompensateBtn13_Any)
        return;
    m_CompensateBtn13_Any = newCompensateBtn13_Any;
    emit CompensateBtn13_AnyChanged();
}

bool ConnectManager::CompensateBtn14_Any() const
{
    return m_CompensateBtn14_Any;
}

void ConnectManager::setCompensateBtn14_Any(bool newCompensateBtn14_Any)
{
    if (m_CompensateBtn14_Any == newCompensateBtn14_Any)
        return;
    m_CompensateBtn14_Any = newCompensateBtn14_Any;
    emit CompensateBtn14_AnyChanged();
}

bool ConnectManager::CompensateBtn15_Any() const
{
    return m_CompensateBtn15_Any;
}

void ConnectManager::setCompensateBtn15_Any(bool newCompensateBtn15_Any)
{
    if (m_CompensateBtn15_Any == newCompensateBtn15_Any)
        return;
    m_CompensateBtn15_Any = newCompensateBtn15_Any;
    emit CompensateBtn15_AnyChanged();
}

bool ConnectManager::CompensateBtn16_Any() const
{
    return m_CompensateBtn16_Any;
}

void ConnectManager::setCompensateBtn16_Any(bool newCompensateBtn16_Any)
{
    if (m_CompensateBtn16_Any == newCompensateBtn16_Any)
        return;
    m_CompensateBtn16_Any = newCompensateBtn16_Any;
    emit CompensateBtn16_AnyChanged();
}

bool ConnectManager::CompensateBtn17_Any() const
{
    return m_CompensateBtn17_Any;
}

void ConnectManager::setCompensateBtn17_Any(bool newCompensateBtn17_Any)
{
    if (m_CompensateBtn17_Any == newCompensateBtn17_Any)
        return;
    m_CompensateBtn17_Any = newCompensateBtn17_Any;
    emit CompensateBtn17_AnyChanged();
}

bool ConnectManager::CompensateBtn18_Any() const
{
    return m_CompensateBtn18_Any;
}

void ConnectManager::setCompensateBtn18_Any(bool newCompensateBtn18_Any)
{
    if (m_CompensateBtn18_Any == newCompensateBtn18_Any)
        return;
    m_CompensateBtn18_Any = newCompensateBtn18_Any;
    emit CompensateBtn18_AnyChanged();
}

bool ConnectManager::CompensateBtn19_Any() const
{
    return m_CompensateBtn19_Any;
}

void ConnectManager::setCompensateBtn19_Any(bool newCompensateBtn19_Any)
{
    if (m_CompensateBtn19_Any == newCompensateBtn19_Any)
        return;
    m_CompensateBtn19_Any = newCompensateBtn19_Any;
    emit CompensateBtn19_AnyChanged();
}

bool ConnectManager::CompensateBtn20_Any() const
{
    return m_CompensateBtn20_Any;
}

void ConnectManager::setCompensateBtn20_Any(bool newCompensateBtn20_Any)
{
    if (m_CompensateBtn20_Any == newCompensateBtn20_Any)
        return;
    m_CompensateBtn20_Any = newCompensateBtn20_Any;
    emit CompensateBtn20_AnyChanged();
}





bool ConnectManager::Printer_Exist() const
{
    return m_Printer_Exist;
}

void ConnectManager::setPrinter_Exist(bool newPrinter_Exist)
{
    if (m_Printer_Exist == newPrinter_Exist)
        return;
    m_Printer_Exist = newPrinter_Exist;
    emit Printer_ExistChanged();
}

bool ConnectManager::Servo_Mode() const
{
    return m_Servo_Mode;
}

void ConnectManager::setServo_Mode(bool newServo_Mode)
{
    if (m_Servo_Mode == newServo_Mode)
        return;
    m_Servo_Mode = newServo_Mode;
    emit Servo_ModeChanged();
}

bool ConnectManager::TLJ_Exist() const
{
    return m_TLJ_Exist;
}

void ConnectManager::setTLJ_Exist(bool newTLJ_Exist)
{
    if (m_TLJ_Exist == newTLJ_Exist)
        return;
    m_TLJ_Exist = newTLJ_Exist;
    emit TLJ_ExistChanged();
}

bool ConnectManager::SawChoose_Mode() const
{
    return m_SawChoose_Mode;
}

void ConnectManager::setSawChoose_Mode(bool newSawChoose_Mode)
{
    if (m_SawChoose_Mode == newSawChoose_Mode)
        return;
    m_SawChoose_Mode = newSawChoose_Mode;
    emit SawChoose_ModeChanged();
}

bool ConnectManager::AutoObserve_Exist() const
{
    return m_AutoObserve_Exist;
}

void ConnectManager::setAutoObserve_Exist(bool newAutoObserve_Exist)
{
    if (m_AutoObserve_Exist == newAutoObserve_Exist)
        return;
    m_AutoObserve_Exist = newAutoObserve_Exist;
    emit AutoObserve_ExistChanged();
}

bool ConnectManager::LimitBtn_Mode() const
{
    return m_LimitBtn_Mode;
}

void ConnectManager::setLimitBtn_Mode(bool newLimitBtn_Mode)
{
    if (m_LimitBtn_Mode == newLimitBtn_Mode)
        return;
    m_LimitBtn_Mode = newLimitBtn_Mode;
    emit LimitBtn_ModeChanged();
}

bool ConnectManager::Knob_Program() const
{
    return m_Knob_Program;
}

void ConnectManager::setKnob_Program(bool newKnob_Program)
{
    if (m_Knob_Program == newKnob_Program)
        return;
    m_Knob_Program = newKnob_Program;
    emit Knob_ProgramChanged();
}

bool ConnectManager::JT_Knob_Mode() const
{
    return m_JT_Knob_Mode;
}

void ConnectManager::setJT_Knob_Mode(bool newJT_Knob_Mode)
{
    if (m_JT_Knob_Mode == newJT_Knob_Mode)
        return;
    m_JT_Knob_Mode = newJT_Knob_Mode;
    emit JT_Knob_ModeChanged();
}

bool ConnectManager::DCF_Power_Mode() const
{
    return m_DCF_Power_Mode;
}

void ConnectManager::setDCF_Power_Mode(bool newDCF_Power_Mode)
{
    if (m_DCF_Power_Mode == newDCF_Power_Mode)
        return;
    m_DCF_Power_Mode = newDCF_Power_Mode;
    emit DCF_Power_ModeChanged();
}

bool ConnectManager::Scram_Mode() const
{
    return m_Scram_Mode;
}

void ConnectManager::setScram_Mode(bool newScram_Mode)
{
    if (m_Scram_Mode == newScram_Mode)
        return;
    m_Scram_Mode = newScram_Mode;
    emit Scram_ModeChanged();
}

bool ConnectManager::Encoder_Mode() const
{
    return m_Encoder_Mode;
}

void ConnectManager::setEncoder_Mode(bool newEncoder_Mode)
{
    if (m_Encoder_Mode == newEncoder_Mode)
        return;
    m_Encoder_Mode = newEncoder_Mode;
    emit Encoder_ModeChanged();
}

bool ConnectManager::Servo_Warning_Mode() const
{
    return m_Servo_Warning_Mode;
}

void ConnectManager::setServo_Warning_Mode(bool newServo_Warning_Mode)
{
    if (m_Servo_Warning_Mode == newServo_Warning_Mode)
        return;
    m_Servo_Warning_Mode = newServo_Warning_Mode;
    emit Servo_Warning_ModeChanged();
}

bool ConnectManager::DoubleSaw_Open() const
{
    return m_DoubleSaw_Open;
}

void ConnectManager::setDoubleSaw_Open(bool newDoubleSaw_Open)
{
    if (m_DoubleSaw_Open == newDoubleSaw_Open)
        return;
    m_DoubleSaw_Open = newDoubleSaw_Open;
    emit DoubleSaw_OpenChanged();
}

bool ConnectManager::GJTIME_Mode() const
{
    return m_GJTIME_Mode;
}

void ConnectManager::setGJTIME_Mode(bool newGJTIME_Mode)
{
    if (m_GJTIME_Mode == newGJTIME_Mode)
        return;
    m_GJTIME_Mode = newGJTIME_Mode;
    emit GJTIME_ModeChanged();
}

QString ConnectManager::M_Length01_QR() const
{
    return m_M_Length01_QR;
}

void ConnectManager::setM_Length01_QR(const QString &newM_Length01_QR)
{
    if (m_M_Length01_QR == newM_Length01_QR)
        return;
    m_M_Length01_QR = newM_Length01_QR;
    emit M_Length01_QRChanged();
}

QString ConnectManager::M_Length02_QR() const
{
    return m_M_Length02_QR;
}

void ConnectManager::setM_Length02_QR(const QString &newM_Length02_QR)
{
    if (m_M_Length02_QR == newM_Length02_QR)
        return;
    m_M_Length02_QR = newM_Length02_QR;
    emit M_Length02_QRChanged();
}

QString ConnectManager::M_Length03_QR() const
{
    return m_M_Length03_QR;
}

void ConnectManager::setM_Length03_QR(const QString &newM_Length03_QR)
{
    if (m_M_Length03_QR == newM_Length03_QR)
        return;
    m_M_Length03_QR = newM_Length03_QR;
    emit M_Length03_QRChanged();
}

QString ConnectManager::M_Length04_QR() const
{
    return m_M_Length04_QR;
}

void ConnectManager::setM_Length04_QR(const QString &newM_Length04_QR)
{
    if (m_M_Length04_QR == newM_Length04_QR)
        return;
    m_M_Length04_QR = newM_Length04_QR;
    emit M_Length04_QRChanged();
}

QString ConnectManager::M_Length05_QR() const
{
    return m_M_Length05_QR;
}

void ConnectManager::setM_Length05_QR(const QString &newM_Length05_QR)
{
    if (m_M_Length05_QR == newM_Length05_QR)
        return;
    m_M_Length05_QR = newM_Length05_QR;
    emit M_Length05_QRChanged();
}

QString ConnectManager::M_Length06_QR() const
{
    return m_M_Length06_QR;
}

void ConnectManager::setM_Length06_QR(const QString &newM_Length06_QR)
{
    if (m_M_Length06_QR == newM_Length06_QR)
        return;
    m_M_Length06_QR = newM_Length06_QR;
    emit M_Length06_QRChanged();
}

QString ConnectManager::M_Length07_QR() const
{
    return m_M_Length07_QR;
}

void ConnectManager::setM_Length07_QR(const QString &newM_Length07_QR)
{
    if (m_M_Length07_QR == newM_Length07_QR)
        return;
    m_M_Length07_QR = newM_Length07_QR;
    emit M_Length07_QRChanged();
}

QString ConnectManager::M_Length08_QR() const
{
    return m_M_Length08_QR;
}

void ConnectManager::setM_Length08_QR(const QString &newM_Length08_QR)
{
    if (m_M_Length08_QR == newM_Length08_QR)
        return;
    m_M_Length08_QR = newM_Length08_QR;
    emit M_Length08_QRChanged();
}

QString ConnectManager::M_Length09_QR() const
{
    return m_M_Length09_QR;
}

void ConnectManager::setM_Length09_QR(const QString &newM_Length09_QR)
{
    if (m_M_Length09_QR == newM_Length09_QR)
        return;
    m_M_Length09_QR = newM_Length09_QR;
    emit M_Length09_QRChanged();
}

QString ConnectManager::M_Length10_QR() const
{
    return m_M_Length10_QR;
}

void ConnectManager::setM_Length10_QR(const QString &newM_Length10_QR)
{
    if (m_M_Length10_QR == newM_Length10_QR)
        return;
    m_M_Length10_QR = newM_Length10_QR;
    emit M_Length10_QRChanged();
}

QString ConnectManager::M_Length11_QR() const
{
    return m_M_Length11_QR;
}

void ConnectManager::setM_Length11_QR(const QString &newM_Length11_QR)
{
    if (m_M_Length11_QR == newM_Length11_QR)
        return;
    m_M_Length11_QR = newM_Length11_QR;
    emit M_Length11_QRChanged();
}

QString ConnectManager::M_Length12_QR() const
{
    return m_M_Length12_QR;
}

void ConnectManager::setM_Length12_QR(const QString &newM_Length12_QR)
{
    if (m_M_Length12_QR == newM_Length12_QR)
        return;
    m_M_Length12_QR = newM_Length12_QR;
    emit M_Length12_QRChanged();
}

QString ConnectManager::M_Length13_QR() const
{
    return m_M_Length13_QR;
}

void ConnectManager::setM_Length13_QR(const QString &newM_Length13_QR)
{
    if (m_M_Length13_QR == newM_Length13_QR)
        return;
    m_M_Length13_QR = newM_Length13_QR;
    emit M_Length13_QRChanged();
}

QString ConnectManager::M_Length14_QR() const
{
    return m_M_Length14_QR;
}

void ConnectManager::setM_Length14_QR(const QString &newM_Length14_QR)
{
    if (m_M_Length14_QR == newM_Length14_QR)
        return;
    m_M_Length14_QR = newM_Length14_QR;
    emit M_Length14_QRChanged();
}

QString ConnectManager::M_Length15_QR() const
{
    return m_M_Length15_QR;
}

void ConnectManager::setM_Length15_QR(const QString &newM_Length15_QR)
{
    if (m_M_Length15_QR == newM_Length15_QR)
        return;
    m_M_Length15_QR = newM_Length15_QR;
    emit M_Length15_QRChanged();
}

QString ConnectManager::M_Length16_QR() const
{
    return m_M_Length16_QR;
}

void ConnectManager::setM_Length16_QR(const QString &newM_Length16_QR)
{
    if (m_M_Length16_QR == newM_Length16_QR)
        return;
    m_M_Length16_QR = newM_Length16_QR;
    emit M_Length16_QRChanged();
}

QString ConnectManager::M_Length17_QR() const
{
    return m_M_Length17_QR;
}

void ConnectManager::setM_Length17_QR(const QString &newM_Length17_QR)
{
    if (m_M_Length17_QR == newM_Length17_QR)
        return;
    m_M_Length17_QR = newM_Length17_QR;
    emit M_Length17_QRChanged();
}

QString ConnectManager::M_Length18_QR() const
{
    return m_M_Length18_QR;
}

void ConnectManager::setM_Length18_QR(const QString &newM_Length18_QR)
{
    if (m_M_Length18_QR == newM_Length18_QR)
        return;
    m_M_Length18_QR = newM_Length18_QR;
    emit M_Length18_QRChanged();
}

QString ConnectManager::M_Length19_QR() const
{
    return m_M_Length19_QR;
}

void ConnectManager::setM_Length19_QR(const QString &newM_Length19_QR)
{
    if (m_M_Length19_QR == newM_Length19_QR)
        return;
    m_M_Length19_QR = newM_Length19_QR;
    emit M_Length19_QRChanged();
}

QString ConnectManager::M_Length20_QR() const
{
    return m_M_Length20_QR;
}

void ConnectManager::setM_Length20_QR(const QString &newM_Length20_QR)
{
    if (m_M_Length20_QR == newM_Length20_QR)
        return;
    m_M_Length20_QR = newM_Length20_QR;
    emit M_Length20_QRChanged();
}

QString ConnectManager::LeftAngle01_QR() const
{
    return m_LeftAngle01_QR;
}

void ConnectManager::setLeftAngle01_QR(const QString &newLeftAngle01_QR)
{
    if (m_LeftAngle01_QR == newLeftAngle01_QR)
        return;
    m_LeftAngle01_QR = newLeftAngle01_QR;
    emit LeftAngle01_QRChanged();
}

QString ConnectManager::LeftAngle02_QR() const
{
    return m_LeftAngle02_QR;
}

void ConnectManager::setLeftAngle02_QR(const QString &newLeftAngle02_QR)
{
    if (m_LeftAngle02_QR == newLeftAngle02_QR)
        return;
    m_LeftAngle02_QR = newLeftAngle02_QR;
    emit LeftAngle02_QRChanged();
}

QString ConnectManager::LeftAngle03_QR() const
{
    return m_LeftAngle03_QR;
}

void ConnectManager::setLeftAngle03_QR(const QString &newLeftAngle03_QR)
{
    if (m_LeftAngle03_QR == newLeftAngle03_QR)
        return;
    m_LeftAngle03_QR = newLeftAngle03_QR;
    emit LeftAngle03_QRChanged();
}

QString ConnectManager::LeftAngle04_QR() const
{
    return m_LeftAngle04_QR;
}

void ConnectManager::setLeftAngle04_QR(const QString &newLeftAngle04_QR)
{
    if (m_LeftAngle04_QR == newLeftAngle04_QR)
        return;
    m_LeftAngle04_QR = newLeftAngle04_QR;
    emit LeftAngle04_QRChanged();
}

QString ConnectManager::LeftAngle05_QR() const
{
    return m_LeftAngle05_QR;
}

void ConnectManager::setLeftAngle05_QR(const QString &newLeftAngle05_QR)
{
    if (m_LeftAngle05_QR == newLeftAngle05_QR)
        return;
    m_LeftAngle05_QR = newLeftAngle05_QR;
    emit LeftAngle05_QRChanged();
}

QString ConnectManager::LeftAngle06_QR() const
{
    return m_LeftAngle06_QR;
}

void ConnectManager::setLeftAngle06_QR(const QString &newLeftAngle06_QR)
{
    if (m_LeftAngle06_QR == newLeftAngle06_QR)
        return;
    m_LeftAngle06_QR = newLeftAngle06_QR;
    emit LeftAngle06_QRChanged();
}

QString ConnectManager::LeftAngle07_QR() const
{
    return m_LeftAngle07_QR;
}

void ConnectManager::setLeftAngle07_QR(const QString &newLeftAngle07_QR)
{
    if (m_LeftAngle07_QR == newLeftAngle07_QR)
        return;
    m_LeftAngle07_QR = newLeftAngle07_QR;
    emit LeftAngle07_QRChanged();
}

QString ConnectManager::LeftAngle08_QR() const
{
    return m_LeftAngle08_QR;
}

void ConnectManager::setLeftAngle08_QR(const QString &newLeftAngle08_QR)
{
    if (m_LeftAngle08_QR == newLeftAngle08_QR)
        return;
    m_LeftAngle08_QR = newLeftAngle08_QR;
    emit LeftAngle08_QRChanged();
}

QString ConnectManager::LeftAngle09_QR() const
{
    return m_LeftAngle09_QR;
}

void ConnectManager::setLeftAngle09_QR(const QString &newLeftAngle09_QR)
{
    if (m_LeftAngle09_QR == newLeftAngle09_QR)
        return;
    m_LeftAngle09_QR = newLeftAngle09_QR;
    emit LeftAngle09_QRChanged();
}

QString ConnectManager::LeftAngle10_QR() const
{
    return m_LeftAngle10_QR;
}

void ConnectManager::setLeftAngle10_QR(const QString &newLeftAngle10_QR)
{
    if (m_LeftAngle10_QR == newLeftAngle10_QR)
        return;
    m_LeftAngle10_QR = newLeftAngle10_QR;
    emit LeftAngle10_QRChanged();
}

QString ConnectManager::LeftAngle11_QR() const
{
    return m_LeftAngle11_QR;
}

void ConnectManager::setLeftAngle11_QR(const QString &newLeftAngle11_QR)
{
    if (m_LeftAngle11_QR == newLeftAngle11_QR)
        return;
    m_LeftAngle11_QR = newLeftAngle11_QR;
    emit LeftAngle11_QRChanged();
}

QString ConnectManager::LeftAngle12_QR() const
{
    return m_LeftAngle12_QR;
}

void ConnectManager::setLeftAngle12_QR(const QString &newLeftAngle12_QR)
{
    if (m_LeftAngle12_QR == newLeftAngle12_QR)
        return;
    m_LeftAngle12_QR = newLeftAngle12_QR;
    emit LeftAngle12_QRChanged();
}

QString ConnectManager::LeftAngle13_QR() const
{
    return m_LeftAngle13_QR;
}

void ConnectManager::setLeftAngle13_QR(const QString &newLeftAngle13_QR)
{
    if (m_LeftAngle13_QR == newLeftAngle13_QR)
        return;
    m_LeftAngle13_QR = newLeftAngle13_QR;
    emit LeftAngle13_QRChanged();
}

QString ConnectManager::LeftAngle14_QR() const
{
    return m_LeftAngle14_QR;
}

void ConnectManager::setLeftAngle14_QR(const QString &newLeftAngle14_QR)
{
    if (m_LeftAngle14_QR == newLeftAngle14_QR)
        return;
    m_LeftAngle14_QR = newLeftAngle14_QR;
    emit LeftAngle14_QRChanged();
}

QString ConnectManager::LeftAngle15_QR() const
{
    return m_LeftAngle15_QR;
}

void ConnectManager::setLeftAngle15_QR(const QString &newLeftAngle15_QR)
{
    if (m_LeftAngle15_QR == newLeftAngle15_QR)
        return;
    m_LeftAngle15_QR = newLeftAngle15_QR;
    emit LeftAngle15_QRChanged();
}

QString ConnectManager::LeftAngle16_QR() const
{
    return m_LeftAngle16_QR;
}

void ConnectManager::setLeftAngle16_QR(const QString &newLeftAngle16_QR)
{
    if (m_LeftAngle16_QR == newLeftAngle16_QR)
        return;
    m_LeftAngle16_QR = newLeftAngle16_QR;
    emit LeftAngle16_QRChanged();
}

QString ConnectManager::LeftAngle17_QR() const
{
    return m_LeftAngle17_QR;
}

void ConnectManager::setLeftAngle17_QR(const QString &newLeftAngle17_QR)
{
    if (m_LeftAngle17_QR == newLeftAngle17_QR)
        return;
    m_LeftAngle17_QR = newLeftAngle17_QR;
    emit LeftAngle17_QRChanged();
}

QString ConnectManager::LeftAngle18_QR() const
{
    return m_LeftAngle18_QR;
}

void ConnectManager::setLeftAngle18_QR(const QString &newLeftAngle18_QR)
{
    if (m_LeftAngle18_QR == newLeftAngle18_QR)
        return;
    m_LeftAngle18_QR = newLeftAngle18_QR;
    emit LeftAngle18_QRChanged();
}

QString ConnectManager::LeftAngle19_QR() const
{
    return m_LeftAngle19_QR;
}

void ConnectManager::setLeftAngle19_QR(const QString &newLeftAngle19_QR)
{
    if (m_LeftAngle19_QR == newLeftAngle19_QR)
        return;
    m_LeftAngle19_QR = newLeftAngle19_QR;
    emit LeftAngle19_QRChanged();
}

QString ConnectManager::LeftAngle20_QR() const
{
    return m_LeftAngle20_QR;
}

void ConnectManager::setLeftAngle20_QR(const QString &newLeftAngle20_QR)
{
    if (m_LeftAngle20_QR == newLeftAngle20_QR)
        return;
    m_LeftAngle20_QR = newLeftAngle20_QR;
    emit LeftAngle20_QRChanged();
}

QString ConnectManager::RightAngle01_QR() const
{
    return m_RightAngle01_QR;
}

void ConnectManager::setRightAngle01_QR(const QString &newRightAngle01_QR)
{
    if (m_RightAngle01_QR == newRightAngle01_QR)
        return;
    m_RightAngle01_QR = newRightAngle01_QR;
    emit RightAngle01_QRChanged();
}

QString ConnectManager::RightAngle02_QR() const
{
    return m_RightAngle02_QR;
}

void ConnectManager::setRightAngle02_QR(const QString &newRightAngle02_QR)
{
    if (m_RightAngle02_QR == newRightAngle02_QR)
        return;
    m_RightAngle02_QR = newRightAngle02_QR;
    emit RightAngle02_QRChanged();
}

QString ConnectManager::RightAngle03_QR() const
{
    return m_RightAngle03_QR;
}

void ConnectManager::setRightAngle03_QR(const QString &newRightAngle03_QR)
{
    if (m_RightAngle03_QR == newRightAngle03_QR)
        return;
    m_RightAngle03_QR = newRightAngle03_QR;
    emit RightAngle03_QRChanged();
}

QString ConnectManager::RightAngle04_QR() const
{
    return m_RightAngle04_QR;
}

void ConnectManager::setRightAngle04_QR(const QString &newRightAngle04_QR)
{
    if (m_RightAngle04_QR == newRightAngle04_QR)
        return;
    m_RightAngle04_QR = newRightAngle04_QR;
    emit RightAngle04_QRChanged();
}

QString ConnectManager::RightAngle05_QR() const
{
    return m_RightAngle05_QR;
}

void ConnectManager::setRightAngle05_QR(const QString &newRightAngle05_QR)
{
    if (m_RightAngle05_QR == newRightAngle05_QR)
        return;
    m_RightAngle05_QR = newRightAngle05_QR;
    emit RightAngle05_QRChanged();
}

QString ConnectManager::RightAngle06_QR() const
{
    return m_RightAngle06_QR;
}

void ConnectManager::setRightAngle06_QR(const QString &newRightAngle06_QR)
{
    if (m_RightAngle06_QR == newRightAngle06_QR)
        return;
    m_RightAngle06_QR = newRightAngle06_QR;
    emit RightAngle06_QRChanged();
}

QString ConnectManager::RightAngle07_QR() const
{
    return m_RightAngle07_QR;
}

void ConnectManager::setRightAngle07_QR(const QString &newRightAngle07_QR)
{
    if (m_RightAngle07_QR == newRightAngle07_QR)
        return;
    m_RightAngle07_QR = newRightAngle07_QR;
    emit RightAngle07_QRChanged();
}

QString ConnectManager::RightAngle08_QR() const
{
    return m_RightAngle08_QR;
}

void ConnectManager::setRightAngle08_QR(const QString &newRightAngle08_QR)
{
    if (m_RightAngle08_QR == newRightAngle08_QR)
        return;
    m_RightAngle08_QR = newRightAngle08_QR;
    emit RightAngle08_QRChanged();
}

QString ConnectManager::RightAngle09_QR() const
{
    return m_RightAngle09_QR;
}

void ConnectManager::setRightAngle09_QR(const QString &newRightAngle09_QR)
{
    if (m_RightAngle09_QR == newRightAngle09_QR)
        return;
    m_RightAngle09_QR = newRightAngle09_QR;
    emit RightAngle09_QRChanged();
}

QString ConnectManager::RightAngle10_QR() const
{
    return m_RightAngle10_QR;
}

void ConnectManager::setRightAngle10_QR(const QString &newRightAngle10_QR)
{
    if (m_RightAngle10_QR == newRightAngle10_QR)
        return;
    m_RightAngle10_QR = newRightAngle10_QR;
    emit RightAngle10_QRChanged();
}

QString ConnectManager::RightAngle11_QR() const
{
    return m_RightAngle11_QR;
}

void ConnectManager::setRightAngle11_QR(const QString &newRightAngle11_QR)
{
    if (m_RightAngle11_QR == newRightAngle11_QR)
        return;
    m_RightAngle11_QR = newRightAngle11_QR;
    emit RightAngle11_QRChanged();
}

QString ConnectManager::RightAngle12_QR() const
{
    return m_RightAngle12_QR;
}

void ConnectManager::setRightAngle12_QR(const QString &newRightAngle12_QR)
{
    if (m_RightAngle12_QR == newRightAngle12_QR)
        return;
    m_RightAngle12_QR = newRightAngle12_QR;
    emit RightAngle12_QRChanged();
}

QString ConnectManager::RightAngle13_QR() const
{
    return m_RightAngle13_QR;
}

void ConnectManager::setRightAngle13_QR(const QString &newRightAngle13_QR)
{
    if (m_RightAngle13_QR == newRightAngle13_QR)
        return;
    m_RightAngle13_QR = newRightAngle13_QR;
    emit RightAngle13_QRChanged();
}

QString ConnectManager::RightAngle14_QR() const
{
    return m_RightAngle14_QR;
}

void ConnectManager::setRightAngle14_QR(const QString &newRightAngle14_QR)
{
    if (m_RightAngle14_QR == newRightAngle14_QR)
        return;
    m_RightAngle14_QR = newRightAngle14_QR;
    emit RightAngle14_QRChanged();
}

QString ConnectManager::RightAngle15_QR() const
{
    return m_RightAngle15_QR;
}

void ConnectManager::setRightAngle15_QR(const QString &newRightAngle15_QR)
{
    if (m_RightAngle15_QR == newRightAngle15_QR)
        return;
    m_RightAngle15_QR = newRightAngle15_QR;
    emit RightAngle15_QRChanged();
}

QString ConnectManager::RightAngle16_QR() const
{
    return m_RightAngle16_QR;
}

void ConnectManager::setRightAngle16_QR(const QString &newRightAngle16_QR)
{
    if (m_RightAngle16_QR == newRightAngle16_QR)
        return;
    m_RightAngle16_QR = newRightAngle16_QR;
    emit RightAngle16_QRChanged();
}

QString ConnectManager::RightAngle17_QR() const
{
    return m_RightAngle17_QR;
}

void ConnectManager::setRightAngle17_QR(const QString &newRightAngle17_QR)
{
    if (m_RightAngle17_QR == newRightAngle17_QR)
        return;
    m_RightAngle17_QR = newRightAngle17_QR;
    emit RightAngle17_QRChanged();
}

QString ConnectManager::RightAngle18_QR() const
{
    return m_RightAngle18_QR;
}

void ConnectManager::setRightAngle18_QR(const QString &newRightAngle18_QR)
{
    if (m_RightAngle18_QR == newRightAngle18_QR)
        return;
    m_RightAngle18_QR = newRightAngle18_QR;
    emit RightAngle18_QRChanged();
}

QString ConnectManager::RightAngle19_QR() const
{
    return m_RightAngle19_QR;
}

void ConnectManager::setRightAngle19_QR(const QString &newRightAngle19_QR)
{
    if (m_RightAngle19_QR == newRightAngle19_QR)
        return;
    m_RightAngle19_QR = newRightAngle19_QR;
    emit RightAngle19_QRChanged();
}

QString ConnectManager::RightAngle20_QR() const
{
    return m_RightAngle20_QR;
}

void ConnectManager::setRightAngle20_QR(const QString &newRightAngle20_QR)
{
    if (m_RightAngle20_QR == newRightAngle20_QR)
        return;
    m_RightAngle20_QR = newRightAngle20_QR;
    emit RightAngle20_QRChanged();
}

QString ConnectManager::Count01_QR() const
{
    return m_Count01_QR;
}

void ConnectManager::setCount01_QR(const QString &newCount01_QR)
{
    if (m_Count01_QR == newCount01_QR)
        return;
    m_Count01_QR = newCount01_QR;
    emit Count01_QRChanged();
}

QString ConnectManager::Count02_QR() const
{
    return m_Count02_QR;
}

void ConnectManager::setCount02_QR(const QString &newCount02_QR)
{
    if (m_Count02_QR == newCount02_QR)
        return;
    m_Count02_QR = newCount02_QR;
    emit Count02_QRChanged();
}

QString ConnectManager::Count03_QR() const
{
    return m_Count03_QR;
}

void ConnectManager::setCount03_QR(const QString &newCount03_QR)
{
    if (m_Count03_QR == newCount03_QR)
        return;
    m_Count03_QR = newCount03_QR;
    emit Count03_QRChanged();
}

QString ConnectManager::Count04_QR() const
{
    return m_Count04_QR;
}

void ConnectManager::setCount04_QR(const QString &newCount04_QR)
{
    if (m_Count04_QR == newCount04_QR)
        return;
    m_Count04_QR = newCount04_QR;
    emit Count04_QRChanged();
}

QString ConnectManager::Count05_QR() const
{
    return m_Count05_QR;
}

void ConnectManager::setCount05_QR(const QString &newCount05_QR)
{
    if (m_Count05_QR == newCount05_QR)
        return;
    m_Count05_QR = newCount05_QR;
    emit Count05_QRChanged();
}

QString ConnectManager::Count06_QR() const
{
    return m_Count06_QR;
}

void ConnectManager::setCount06_QR(const QString &newCount06_QR)
{
    if (m_Count06_QR == newCount06_QR)
        return;
    m_Count06_QR = newCount06_QR;
    emit Count06_QRChanged();
}

QString ConnectManager::Count07_QR() const
{
    return m_Count07_QR;
}

void ConnectManager::setCount07_QR(const QString &newCount07_QR)
{
    if (m_Count07_QR == newCount07_QR)
        return;
    m_Count07_QR = newCount07_QR;
    emit Count07_QRChanged();
}

QString ConnectManager::Count08_QR() const
{
    return m_Count08_QR;
}

void ConnectManager::setCount08_QR(const QString &newCount08_QR)
{
    if (m_Count08_QR == newCount08_QR)
        return;
    m_Count08_QR = newCount08_QR;
    emit Count08_QRChanged();
}

QString ConnectManager::Count09_QR() const
{
    return m_Count09_QR;
}

void ConnectManager::setCount09_QR(const QString &newCount09_QR)
{
    if (m_Count09_QR == newCount09_QR)
        return;
    m_Count09_QR = newCount09_QR;
    emit Count09_QRChanged();
}

QString ConnectManager::Count10_QR() const
{
    return m_Count10_QR;
}

void ConnectManager::setCount10_QR(const QString &newCount10_QR)
{
    if (m_Count10_QR == newCount10_QR)
        return;
    m_Count10_QR = newCount10_QR;
    emit Count10_QRChanged();
}

QString ConnectManager::Count11_QR() const
{
    return m_Count11_QR;
}

void ConnectManager::setCount11_QR(const QString &newCount11_QR)
{
    if (m_Count11_QR == newCount11_QR)
        return;
    m_Count11_QR = newCount11_QR;
    emit Count11_QRChanged();
}

QString ConnectManager::Count12_QR() const
{
    return m_Count12_QR;
}

void ConnectManager::setCount12_QR(const QString &newCount12_QR)
{
    if (m_Count12_QR == newCount12_QR)
        return;
    m_Count12_QR = newCount12_QR;
    emit Count12_QRChanged();
}

QString ConnectManager::Count13_QR() const
{
    return m_Count13_QR;
}

void ConnectManager::setCount13_QR(const QString &newCount13_QR)
{
    if (m_Count13_QR == newCount13_QR)
        return;
    m_Count13_QR = newCount13_QR;
    emit Count13_QRChanged();
}

QString ConnectManager::Count14_QR() const
{
    return m_Count14_QR;
}

void ConnectManager::setCount14_QR(const QString &newCount14_QR)
{
    if (m_Count14_QR == newCount14_QR)
        return;
    m_Count14_QR = newCount14_QR;
    emit Count14_QRChanged();
}

QString ConnectManager::Count15_QR() const
{
    return m_Count15_QR;
}

void ConnectManager::setCount15_QR(const QString &newCount15_QR)
{
    if (m_Count15_QR == newCount15_QR)
        return;
    m_Count15_QR = newCount15_QR;
    emit Count15_QRChanged();
}

QString ConnectManager::Count16_QR() const
{
    return m_Count16_QR;
}

void ConnectManager::setCount16_QR(const QString &newCount16_QR)
{
    if (m_Count16_QR == newCount16_QR)
        return;
    m_Count16_QR = newCount16_QR;
    emit Count16_QRChanged();
}

QString ConnectManager::Count17_QR() const
{
    return m_Count17_QR;
}

void ConnectManager::setCount17_QR(const QString &newCount17_QR)
{
    if (m_Count17_QR == newCount17_QR)
        return;
    m_Count17_QR = newCount17_QR;
    emit Count17_QRChanged();
}

QString ConnectManager::Count18_QR() const
{
    return m_Count18_QR;
}

void ConnectManager::setCount18_QR(const QString &newCount18_QR)
{
    if (m_Count18_QR == newCount18_QR)
        return;
    m_Count18_QR = newCount18_QR;
    emit Count18_QRChanged();
}

QString ConnectManager::Count19_QR() const
{
    return m_Count19_QR;
}

void ConnectManager::setCount19_QR(const QString &newCount19_QR)
{
    if (m_Count19_QR == newCount19_QR)
        return;
    m_Count19_QR = newCount19_QR;
    emit Count19_QRChanged();
}

QString ConnectManager::Count20_QR() const
{
    return m_Count20_QR;
}

void ConnectManager::setCount20_QR(const QString &newCount20_QR)
{
    if (m_Count20_QR == newCount20_QR)
        return;
    m_Count20_QR = newCount20_QR;
    emit Count20_QRChanged();
}

QString ConnectManager::Worked_Count01_QR() const
{
    return m_Worked_Count01_QR;
}

void ConnectManager::setWorked_Count01_QR(const QString &newWorked_Count01_QR)
{
    if (m_Worked_Count01_QR == newWorked_Count01_QR)
        return;
    m_Worked_Count01_QR = newWorked_Count01_QR;
    emit Worked_Count01_QRChanged();
}

QString ConnectManager::Worked_Count02_QR() const
{
    return m_Worked_Count02_QR;
}

void ConnectManager::setWorked_Count02_QR(const QString &newWorked_Count02_QR)
{
    if (m_Worked_Count02_QR == newWorked_Count02_QR)
        return;
    m_Worked_Count02_QR = newWorked_Count02_QR;
    emit Worked_Count02_QRChanged();
}

QString ConnectManager::Worked_Count04_QR() const
{
    return m_Worked_Count04_QR;
}

void ConnectManager::setWorked_Count04_QR(const QString &newWorked_Count04_QR)
{
    if (m_Worked_Count04_QR == newWorked_Count04_QR)
        return;
    m_Worked_Count04_QR = newWorked_Count04_QR;
    emit Worked_Count04_QRChanged();
}

QString ConnectManager::Worked_Count05_QR() const
{
    return m_Worked_Count05_QR;
}

void ConnectManager::setWorked_Count05_QR(const QString &newWorked_Count05_QR)
{
    if (m_Worked_Count05_QR == newWorked_Count05_QR)
        return;
    m_Worked_Count05_QR = newWorked_Count05_QR;
    emit Worked_Count05_QRChanged();
}

QString ConnectManager::Worked_Count06_QR() const
{
    return m_Worked_Count06_QR;
}

void ConnectManager::setWorked_Count06_QR(const QString &newWorked_Count06_QR)
{
    if (m_Worked_Count06_QR == newWorked_Count06_QR)
        return;
    m_Worked_Count06_QR = newWorked_Count06_QR;
    emit Worked_Count06_QRChanged();
}

QString ConnectManager::Worked_Count08_QR() const
{
    return m_Worked_Count08_QR;
}

void ConnectManager::setWorked_Count08_QR(const QString &newWorked_Count08_QR)
{
    if (m_Worked_Count08_QR == newWorked_Count08_QR)
        return;
    m_Worked_Count08_QR = newWorked_Count08_QR;
    emit Worked_Count08_QRChanged();
}

QString ConnectManager::Worked_Count09_QR() const
{
    return m_Worked_Count09_QR;
}

void ConnectManager::setWorked_Count09_QR(const QString &newWorked_Count09_QR)
{
    if (m_Worked_Count09_QR == newWorked_Count09_QR)
        return;
    m_Worked_Count09_QR = newWorked_Count09_QR;
    emit Worked_Count09_QRChanged();
}

QString ConnectManager::Worked_Count10_QR() const
{
    return m_Worked_Count10_QR;
}

void ConnectManager::setWorked_Count10_QR(const QString &newWorked_Count10_QR)
{
    if (m_Worked_Count10_QR == newWorked_Count10_QR)
        return;
    m_Worked_Count10_QR = newWorked_Count10_QR;
    emit Worked_Count10_QRChanged();
}

QString ConnectManager::Worked_Count11_QR() const
{
    return m_Worked_Count11_QR;
}

void ConnectManager::setWorked_Count11_QR(const QString &newWorked_Count11_QR)
{
    if (m_Worked_Count11_QR == newWorked_Count11_QR)
        return;
    m_Worked_Count11_QR = newWorked_Count11_QR;
    emit Worked_Count11_QRChanged();
}

QString ConnectManager::Worked_Count12_QR() const
{
    return m_Worked_Count12_QR;
}

void ConnectManager::setWorked_Count12_QR(const QString &newWorked_Count12_QR)
{
    if (m_Worked_Count12_QR == newWorked_Count12_QR)
        return;
    m_Worked_Count12_QR = newWorked_Count12_QR;
    emit Worked_Count12_QRChanged();
}

QString ConnectManager::Worked_Count13_QR() const
{
    return m_Worked_Count13_QR;
}

void ConnectManager::setWorked_Count13_QR(const QString &newWorked_Count13_QR)
{
    if (m_Worked_Count13_QR == newWorked_Count13_QR)
        return;
    m_Worked_Count13_QR = newWorked_Count13_QR;
    emit Worked_Count13_QRChanged();
}

QString ConnectManager::Worked_Count14_QR() const
{
    return m_Worked_Count14_QR;
}

void ConnectManager::setWorked_Count14_QR(const QString &newWorked_Count14_QR)
{
    if (m_Worked_Count14_QR == newWorked_Count14_QR)
        return;
    m_Worked_Count14_QR = newWorked_Count14_QR;
    emit Worked_Count14_QRChanged();
}

QString ConnectManager::Worked_Count15_QR() const
{
    return m_Worked_Count15_QR;
}

void ConnectManager::setWorked_Count15_QR(const QString &newWorked_Count15_QR)
{
    if (m_Worked_Count15_QR == newWorked_Count15_QR)
        return;
    m_Worked_Count15_QR = newWorked_Count15_QR;
    emit Worked_Count15_QRChanged();
}

QString ConnectManager::Worked_Count16_QR() const
{
    return m_Worked_Count16_QR;
}

void ConnectManager::setWorked_Count16_QR(const QString &newWorked_Count16_QR)
{
    if (m_Worked_Count16_QR == newWorked_Count16_QR)
        return;
    m_Worked_Count16_QR = newWorked_Count16_QR;
    emit Worked_Count16_QRChanged();
}

QString ConnectManager::Worked_Count17_QR() const
{
    return m_Worked_Count17_QR;
}

void ConnectManager::setWorked_Count17_QR(const QString &newWorked_Count17_QR)
{
    if (m_Worked_Count17_QR == newWorked_Count17_QR)
        return;
    m_Worked_Count17_QR = newWorked_Count17_QR;
    emit Worked_Count17_QRChanged();
}

QString ConnectManager::Worked_Count18_QR() const
{
    return m_Worked_Count18_QR;
}

void ConnectManager::setWorked_Count18_QR(const QString &newWorked_Count18_QR)
{
    if (m_Worked_Count18_QR == newWorked_Count18_QR)
        return;
    m_Worked_Count18_QR = newWorked_Count18_QR;
    emit Worked_Count18_QRChanged();
}

QString ConnectManager::Worked_Count19_QR() const
{
    return m_Worked_Count19_QR;
}

void ConnectManager::setWorked_Count19_QR(const QString &newWorked_Count19_QR)
{
    if (m_Worked_Count19_QR == newWorked_Count19_QR)
        return;
    m_Worked_Count19_QR = newWorked_Count19_QR;
    emit Worked_Count19_QRChanged();
}

QString ConnectManager::Worked_Count20_QR() const
{
    return m_Worked_Count20_QR;
}

void ConnectManager::setWorked_Count20_QR(const QString &newWorked_Count20_QR)
{
    if (m_Worked_Count20_QR == newWorked_Count20_QR)
        return;
    m_Worked_Count20_QR = newWorked_Count20_QR;
    emit Worked_Count20_QRChanged();
}

QString ConnectManager::Worked_Count03_QR() const
{
    return m_Worked_Count03_QR;
}

void ConnectManager::setWorked_Count03_QR(const QString &newWorked_Count03_QR)
{
    if (m_Worked_Count03_QR == newWorked_Count03_QR)
        return;
    m_Worked_Count03_QR = newWorked_Count03_QR;
    emit Worked_Count03_QRChanged();
}

QString ConnectManager::Worked_Count07_QR() const
{
    return m_Worked_Count07_QR;
}

void ConnectManager::setWorked_Count07_QR(const QString &newWorked_Count07_QR)
{
    if (m_Worked_Count07_QR == newWorked_Count07_QR)
        return;
    m_Worked_Count07_QR = newWorked_Count07_QR;
    emit Worked_Count07_QRChanged();
}

bool ConnectManager::Angle45_Mode() const
{
    return m_Angle45_Mode;
}

void ConnectManager::setAngle45_Mode(bool newAngle45_Mode)
{
    if (m_Angle45_Mode == newAngle45_Mode)
        return;
    m_Angle45_Mode = newAngle45_Mode;
    emit Angle45_ModeChanged();
}

bool ConnectManager::LS_Exist() const
{
    return m_LS_Exist;
}

void ConnectManager::setLS_Exist(bool newLS_Exist)
{
    if (m_LS_Exist == newLS_Exist)
        return;
    m_LS_Exist = newLS_Exist;
    emit LS_ExistChanged();
}

QString ConnectManager::DoubleSaw_Delay() const
{
    return m_DoubleSaw_Delay;
}

void ConnectManager::setDoubleSaw_Delay(const QString &newDoubleSaw_Delay)
{
    if (m_DoubleSaw_Delay == newDoubleSaw_Delay)
        return;
    m_DoubleSaw_Delay = newDoubleSaw_Delay;
    emit DoubleSaw_DelayChanged();
}


bool ConnectManager::impactState() const
{
    return m_impactState;
}

void ConnectManager::setImpactState(bool newImpactState)
{
    if (m_impactState == newImpactState)
        return;
    m_impactState = newImpactState;
    emit impactStateChanged();
}

bool ConnectManager::gjState() const
{
    return m_gjState;
}

void ConnectManager::setGjState(bool newGjState)
{
    if (m_gjState == newGjState)
        return;
    m_gjState = newGjState;
    emit gjStateChanged();
}

bool ConnectManager::sawState() const
{
    return m_sawState;
}

void ConnectManager::setSawState(bool newSawState)
{
    if (m_sawState == newSawState)
        return;
    m_sawState = newSawState;
    emit sawStateChanged();
}

QString ConnectManager::workedCount01_PL() const
{
    return m_workedCount01_PL;
}

void ConnectManager::setWorkedCount01_PL(const QString &newWorkedCount01_PL)
{
    if (m_workedCount01_PL == newWorkedCount01_PL)
        return;
    m_workedCount01_PL = newWorkedCount01_PL;
    emit workedCount01_PLChanged();
}

QString ConnectManager::workedCount02_PL() const
{
    return m_workedCount02_PL;
}

void ConnectManager::setWorkedCount02_PL(const QString &newWorkedCount02_PL)
{
    if (m_workedCount02_PL == newWorkedCount02_PL)
        return;
    m_workedCount02_PL = newWorkedCount02_PL;
    emit workedCount02_PLChanged();
}

QString ConnectManager::workedCount03_PL() const
{
    return m_workedCount03_PL;
}

void ConnectManager::setWorkedCount03_PL(const QString &newWorkedCount03_PL)
{
    if (m_workedCount03_PL == newWorkedCount03_PL)
        return;
    m_workedCount03_PL = newWorkedCount03_PL;
    emit workedCount03_PLChanged();
}

QString ConnectManager::workedCount04_PL() const
{
    return m_workedCount04_PL;
}

void ConnectManager::setWorkedCount04_PL(const QString &newWorkedCount04_PL)
{
    if (m_workedCount04_PL == newWorkedCount04_PL)
        return;
    m_workedCount04_PL = newWorkedCount04_PL;
    emit workedCount04_PLChanged();
}

QString ConnectManager::workedCount05_PL() const
{
    return m_workedCount05_PL;
}

void ConnectManager::setWorkedCount05_PL(const QString &newWorkedCount05_PL)
{
    if (m_workedCount05_PL == newWorkedCount05_PL)
        return;
    m_workedCount05_PL = newWorkedCount05_PL;
    emit workedCount05_PLChanged();
}

QString ConnectManager::workedCount06_PL() const
{
    return m_workedCount06_PL;
}

void ConnectManager::setWorkedCount06_PL(const QString &newWorkedCount06_PL)
{
    if (m_workedCount06_PL == newWorkedCount06_PL)
        return;
    m_workedCount06_PL = newWorkedCount06_PL;
    emit workedCount06_PLChanged();
}

QString ConnectManager::workedCount07_PL() const
{
    return m_workedCount07_PL;
}

void ConnectManager::setWorkedCount07_PL(const QString &newWorkedCount07_PL)
{
    if (m_workedCount07_PL == newWorkedCount07_PL)
        return;
    m_workedCount07_PL = newWorkedCount07_PL;
    emit workedCount07_PLChanged();
}

QString ConnectManager::workedCount08_PL() const
{
    return m_workedCount08_PL;
}

void ConnectManager::setWorkedCount08_PL(const QString &newWorkedCount08_PL)
{
    if (m_workedCount08_PL == newWorkedCount08_PL)
        return;
    m_workedCount08_PL = newWorkedCount08_PL;
    emit workedCount08_PLChanged();
}

QString ConnectManager::workedCount09_PL() const
{
    return m_workedCount09_PL;
}

void ConnectManager::setWorkedCount09_PL(const QString &newWorkedCount09_PL)
{
    if (m_workedCount09_PL == newWorkedCount09_PL)
        return;
    m_workedCount09_PL = newWorkedCount09_PL;
    emit workedCount09_PLChanged();
}

QString ConnectManager::workedCount10_PL() const
{
    return m_workedCount10_PL;
}

void ConnectManager::setWorkedCount10_PL(const QString &newWorkedCount10_PL)
{
    if (m_workedCount10_PL == newWorkedCount10_PL)
        return;
    m_workedCount10_PL = newWorkedCount10_PL;
    emit workedCount10_PLChanged();
}



QString ConnectManager::workedCount12_PL() const
{
    return m_workedCount12_PL;
}

void ConnectManager::setWorkedCount12_PL(const QString &newWorkedCount12_PL)
{
    if (m_workedCount12_PL == newWorkedCount12_PL)
        return;
    m_workedCount12_PL = newWorkedCount12_PL;
    emit workedCount12_PLChanged();
}

QString ConnectManager::workedCount13_PL() const
{
    return m_workedCount13_PL;
}

void ConnectManager::setWorkedCount13_PL(const QString &newWorkedCount13_PL)
{
    if (m_workedCount13_PL == newWorkedCount13_PL)
        return;
    m_workedCount13_PL = newWorkedCount13_PL;
    emit workedCount13_PLChanged();
}

QString ConnectManager::workedCount14_PL() const
{
    return m_workedCount14_PL;
}

void ConnectManager::setWorkedCount14_PL(const QString &newWorkedCount14_PL)
{
    if (m_workedCount14_PL == newWorkedCount14_PL)
        return;
    m_workedCount14_PL = newWorkedCount14_PL;
    emit workedCount14_PLChanged();
}

QString ConnectManager::workedCount15_PL() const
{
    return m_workedCount15_PL;
}

void ConnectManager::setWorkedCount15_PL(const QString &newWorkedCount15_PL)
{
    if (m_workedCount15_PL == newWorkedCount15_PL)
        return;
    m_workedCount15_PL = newWorkedCount15_PL;
    emit workedCount15_PLChanged();
}

QString ConnectManager::workedCount17_PL() const
{
    return m_workedCount17_PL;
}

void ConnectManager::setWorkedCount17_PL(const QString &newWorkedCount17_PL)
{
    if (m_workedCount17_PL == newWorkedCount17_PL)
        return;
    m_workedCount17_PL = newWorkedCount17_PL;
    emit workedCount17_PLChanged();
}

QString ConnectManager::workedCount18_PL() const
{
    return m_workedCount18_PL;
}

void ConnectManager::setWorkedCount18_PL(const QString &newWorkedCount18_PL)
{
    if (m_workedCount18_PL == newWorkedCount18_PL)
        return;
    m_workedCount18_PL = newWorkedCount18_PL;
    emit workedCount18_PLChanged();
}

QString ConnectManager::workedCount19_PL() const
{
    return m_workedCount19_PL;
}

void ConnectManager::setWorkedCount19_PL(const QString &newWorkedCount19_PL)
{
    if (m_workedCount19_PL == newWorkedCount19_PL)
        return;
    m_workedCount19_PL = newWorkedCount19_PL;
    emit workedCount19_PLChanged();
}

QString ConnectManager::workedCount20_PL() const
{
    return m_workedCount20_PL;
}

void ConnectManager::setWorkedCount20_PL(const QString &newWorkedCount20_PL)
{
    if (m_workedCount20_PL == newWorkedCount20_PL)
        return;
    m_workedCount20_PL = newWorkedCount20_PL;
    emit workedCount20_PLChanged();
}

QString ConnectManager::workedCount11_PL() const
{
    return m_workedCount11_PL;
}

void ConnectManager::setWorkedCount11_PL(const QString &newWorkedCount11_PL)
{
    if (m_workedCount11_PL == newWorkedCount11_PL)
        return;
    m_workedCount11_PL = newWorkedCount11_PL;
    emit workedCount11_PLChanged();
}

QString ConnectManager::workedCount16_PL() const
{
    return m_workedCount16_PL;
}

void ConnectManager::setWorkedCount16_PL(const QString &newWorkedCount16_PL)
{
    if (m_workedCount16_PL == newWorkedCount16_PL)
        return;
    m_workedCount16_PL = newWorkedCount16_PL;
    emit workedCount16_PLChanged();
}



QString ConnectManager::LG_set_D_Limit() const
{
    return m_LG_set_D_Limit;
}

void ConnectManager::setLG_set_D_Limit(const QString &newLG_set_D_Limit)
{
    if (m_LG_set_D_Limit == newLG_set_D_Limit)
        return;
    m_LG_set_D_Limit = newLG_set_D_Limit;
    emit LG_set_D_LimitChanged();
}

QString ConnectManager::LG_set_U_Limit() const
{
    return m_LG_set_U_Limit;
}

void ConnectManager::setLG_set_U_Limit(const QString &newLG_set_U_Limit)
{
    if (m_LG_set_U_Limit == newLG_set_U_Limit)
        return;
    m_LG_set_U_Limit = newLG_set_U_Limit;
    emit LG_set_U_LimitChanged();
}

QString ConnectManager::ExtraLong_D_Limit() const
{
    return m_ExtraLong_D_Limit;
}

void ConnectManager::setExtraLong_D_Limit(const QString &newExtraLong_D_Limit)
{
    if (m_ExtraLong_D_Limit == newExtraLong_D_Limit)
        return;
    m_ExtraLong_D_Limit = newExtraLong_D_Limit;
    emit ExtraLong_D_LimitChanged();
}

QString ConnectManager::ExtraLong_U_Limit() const
{
    return m_ExtraLong_U_Limit;
}

void ConnectManager::setExtraLong_U_Limit(const QString &newExtraLong_U_Limit)
{
    if (m_ExtraLong_U_Limit == newExtraLong_U_Limit)
        return;
    m_ExtraLong_U_Limit = newExtraLong_U_Limit;
    emit ExtraLong_U_LimitChanged();
}

bool ConnectManager::lg_observe_state() const
{
    return m_lg_observe_state;
}

void ConnectManager::setLg_observe_state(bool newLg_observe_state)
{
    if (m_lg_observe_state == newLg_observe_state)
        return;
    m_lg_observe_state = newLg_observe_state;
    emit lg_observe_stateChanged();
}



bool ConnectManager::ScramWarningSig() const
{
    return m_ScramWarningSig;
}

void ConnectManager::setScramWarningSig(bool newScramWarningSig)
{
    if (m_ScramWarningSig == newScramWarningSig)
        return;
    m_ScramWarningSig = newScramWarningSig;
    emit ScramWarningSigChanged();
}

bool ConnectManager::ServoWarningSig() const
{
    return m_ServoWarningSig;
}

void ConnectManager::setServoWarningSig(bool newServoWarningSig)
{
    if (m_ServoWarningSig == newServoWarningSig)
        return;
    m_ServoWarningSig = newServoWarningSig;
    emit ServoWarningSigChanged();
}

bool ConnectManager::F_LimitWarningSig() const
{
    return m_F_LimitWarningSig;
}

void ConnectManager::setF_LimitWarningSig(bool newF_LimitWarningSig)
{
    if (m_F_LimitWarningSig == newF_LimitWarningSig)
        return;
    m_F_LimitWarningSig = newF_LimitWarningSig;
    emit F_LimitWarningSigChanged();
}

bool ConnectManager::R_LimitWarningSig() const
{
    return m_R_LimitWarningSig;
}

void ConnectManager::setR_LimitWarningSig(bool newR_LimitWarningSig)
{
    if (m_R_LimitWarningSig == newR_LimitWarningSig)
        return;
    m_R_LimitWarningSig = newR_LimitWarningSig;
    emit R_LimitWarningSigChanged();
}

bool ConnectManager::ZeroLocationFailed() const
{
    return m_ZeroLocationFailed;
}

void ConnectManager::setZeroLocationFailed(bool newZeroLocationFailed)
{
    if (m_ZeroLocationFailed == newZeroLocationFailed)
        return;
    m_ZeroLocationFailed = newZeroLocationFailed;
    emit ZeroLocationFailedChanged();
}

bool ConnectManager::ServoReady() const
{
    return m_ServoReady;
}

void ConnectManager::setServoReady(bool newServoReady)
{
    if (m_ServoReady == newServoReady)
        return;
    m_ServoReady = newServoReady;
    emit ServoReadyChanged();
}

bool ConnectManager::ReadLocationFailed() const
{
    return m_ReadLocationFailed;
}

void ConnectManager::setReadLocationFailed(bool newReadLocationFailed)
{
    if (m_ReadLocationFailed == newReadLocationFailed)
        return;
    m_ReadLocationFailed = newReadLocationFailed;
    emit ReadLocationFailedChanged();
}

bool ConnectManager::ReadLocationOver() const
{
    return m_ReadLocationOver;
}

void ConnectManager::setReadLocationOver(bool newReadLocationOver)
{
    if (m_ReadLocationOver == newReadLocationOver)
        return;
    m_ReadLocationOver = newReadLocationOver;
    emit ReadLocationOverChanged();
}

bool ConnectManager::ForbidLeftRun() const
{
    return m_ForbidLeftRun;
}

void ConnectManager::setForbidLeftRun(bool newForbidLeftRun)
{
    if (m_ForbidLeftRun == newForbidLeftRun)
        return;
    m_ForbidLeftRun = newForbidLeftRun;
    emit ForbidLeftRunChanged();
}

bool ConnectManager::ForbidRightRun() const
{
    return m_ForbidRightRun;
}

void ConnectManager::setForbidRightRun(bool newForbidRightRun)
{
    if (m_ForbidRightRun == newForbidRightRun)
        return;
    m_ForbidRightRun = newForbidRightRun;
    emit ForbidRightRunChanged();
}

bool ConnectManager::CurrentLocationEqualLocation() const
{
    return m_CurrentLocationEqualLocation;
}

void ConnectManager::setCurrentLocationEqualLocation(bool newCurrentLocationEqualLocation)
{
    if (m_CurrentLocationEqualLocation == newCurrentLocationEqualLocation)
        return;
    m_CurrentLocationEqualLocation = newCurrentLocationEqualLocation;
    emit CurrentLocationEqualLocationChanged();
}

bool ConnectManager::NotChooseMechine() const
{
    return m_NotChooseMechine;
}

void ConnectManager::setNotChooseMechine(bool newNotChooseMechine)
{
    if (m_NotChooseMechine == newNotChooseMechine)
        return;
    m_NotChooseMechine = newNotChooseMechine;
    emit NotChooseMechineChanged();
}

bool ConnectManager::WorkingForbidImpact() const
{
    return m_WorkingForbidImpact;
}

void ConnectManager::setWorkingForbidImpact(bool newWorkingForbidImpact)
{
    if (m_WorkingForbidImpact == newWorkingForbidImpact)
        return;
    m_WorkingForbidImpact = newWorkingForbidImpact;
    emit WorkingForbidImpactChanged();
}

bool ConnectManager::ForbidRun_NotFindZero() const
{
    return m_ForbidRun_NotFindZero;
}

void ConnectManager::setForbidRun_NotFindZero(bool newForbidRun_NotFindZero)
{
    if (m_ForbidRun_NotFindZero == newForbidRun_NotFindZero)
        return;
    m_ForbidRun_NotFindZero = newForbidRun_NotFindZero;
    emit ForbidRun_NotFindZeroChanged();
}

bool ConnectManager::SawErrForbidImpact() const
{
    return m_SawErrForbidImpact;
}

void ConnectManager::setSawErrForbidImpact(bool newSawErrForbidImpact)
{
    if (m_SawErrForbidImpact == newSawErrForbidImpact)
        return;
    m_SawErrForbidImpact = newSawErrForbidImpact;
    emit SawErrForbidImpactChanged();
}

bool ConnectManager::SawNotRunForbidOut() const
{
    return m_SawNotRunForbidOut;
}

void ConnectManager::setSawNotRunForbidOut(bool newSawNotRunForbidOut)
{
    if (m_SawNotRunForbidOut == newSawNotRunForbidOut)
        return;
    m_SawNotRunForbidOut = newSawNotRunForbidOut;
    emit SawNotRunForbidOutChanged();
}

bool ConnectManager::NotImpactForbidOut() const
{
    return m_NotImpactForbidOut;
}

void ConnectManager::setNotImpactForbidOut(bool newNotImpactForbidOut)
{
    if (m_NotImpactForbidOut == newNotImpactForbidOut)
        return;
    m_NotImpactForbidOut = newNotImpactForbidOut;
    emit NotImpactForbidOutChanged();
}

bool ConnectManager::CurrentLocationForbidOut() const
{
    return m_CurrentLocationForbidOut;
}

void ConnectManager::setCurrentLocationForbidOut(bool newCurrentLocationForbidOut)
{
    if (m_CurrentLocationForbidOut == newCurrentLocationForbidOut)
        return;
    m_CurrentLocationForbidOut = newCurrentLocationForbidOut;
    emit CurrentLocationForbidOutChanged();
}

bool ConnectManager::AutoPrintRun() const
{
    return m_AutoPrintRun;
}

void ConnectManager::setAutoPrintRun(bool newAutoPrintRun)
{
    if (m_AutoPrintRun == newAutoPrintRun)
        return;
    m_AutoPrintRun = newAutoPrintRun;
    emit AutoPrintRunChanged();
}

bool ConnectManager::SetExtraShortLessCDLC() const
{
    return m_SetExtraShortLessCDLC;
}

void ConnectManager::setSetExtraShortLessCDLC(bool newSetExtraShortLessCDLC)
{
    if (m_SetExtraShortLessCDLC == newSetExtraShortLessCDLC)
        return;
    m_SetExtraShortLessCDLC = newSetExtraShortLessCDLC;
    emit SetExtraShortLessCDLCChanged();
}

bool ConnectManager::SawInPlacesSignalErr() const
{
    return m_SawInPlacesSignalErr;
}

void ConnectManager::setSawInPlacesSignalErr(bool newSawInPlacesSignalErr)
{
    if (m_SawInPlacesSignalErr == newSawInPlacesSignalErr)
        return;
    m_SawInPlacesSignalErr = newSawInPlacesSignalErr;
    emit SawInPlacesSignalErrChanged();
}

bool ConnectManager::LocationZeroOver() const
{
    return m_LocationZeroOver;
}

void ConnectManager::setLocationZeroOver(bool newLocationZeroOver)
{
    if (m_LocationZeroOver == newLocationZeroOver)
        return;
    m_LocationZeroOver = newLocationZeroOver;
    emit LocationZeroOverChanged();
}

bool ConnectManager::ForbidRightMechineMove() const
{
    return m_ForbidRightMechineMove;
}

void ConnectManager::setForbidRightMechineMove(bool newForbidRightMechineMove)
{
    if (m_ForbidRightMechineMove == newForbidRightMechineMove)
        return;
    m_ForbidRightMechineMove = newForbidRightMechineMove;
    emit ForbidRightMechineMoveChanged();
}

bool ConnectManager::ExtraLongLocation() const
{
    return m_ExtraLongLocation;
}

void ConnectManager::setExtraLongLocation(bool newExtraLongLocation)
{
    if (m_ExtraLongLocation == newExtraLongLocation)
        return;
    m_ExtraLongLocation = newExtraLongLocation;
    emit ExtraLongLocationChanged();
}

bool ConnectManager::ChangeSawMethod() const
{
    return m_ChangeSawMethod;
}

void ConnectManager::setChangeSawMethod(bool newChangeSawMethod)
{
    if (m_ChangeSawMethod == newChangeSawMethod)
        return;
    m_ChangeSawMethod = newChangeSawMethod;
    emit ChangeSawMethodChanged();
}

bool ConnectManager::ErrCorrected() const
{
    return m_ErrCorrected;
}

void ConnectManager::setErrCorrected(bool newErrCorrected)
{
    if (m_ErrCorrected == newErrCorrected)
        return;
    m_ErrCorrected = newErrCorrected;
    emit ErrCorrectedChanged();
}

bool ConnectManager::Forbid_45NB() const
{
    return m_Forbid_45NB;
}

void ConnectManager::setForbid_45NB(bool newForbid_45NB)
{
    if (m_Forbid_45NB == newForbid_45NB)
        return;
    m_Forbid_45NB = newForbid_45NB;
    emit Forbid_45NBChanged();
}

bool ConnectManager::ExtraShortOrigin() const
{
    return m_ExtraShortOrigin;
}

void ConnectManager::setExtraShortOrigin(bool newExtraShortOrigin)
{
    if (m_ExtraShortOrigin == newExtraShortOrigin)
        return;
    m_ExtraShortOrigin = newExtraShortOrigin;
    emit ExtraShortOriginChanged();
}

bool ConnectManager::CleanBatteryWarning() const
{
    return m_CleanBatteryWarning;
}

void ConnectManager::setCleanBatteryWarning(bool newCleanBatteryWarning)
{
    if (m_CleanBatteryWarning == newCleanBatteryWarning)
        return;
    m_CleanBatteryWarning = newCleanBatteryWarning;
    emit CleanBatteryWarningChanged();
}

bool ConnectManager::CleanBatteryDone() const
{
    return m_CleanBatteryDone;
}

void ConnectManager::setCleanBatteryDone(bool newCleanBatteryDone)
{
    if (m_CleanBatteryDone == newCleanBatteryDone)
        return;
    m_CleanBatteryDone = newCleanBatteryDone;
    emit CleanBatteryDoneChanged();
}

bool ConnectManager::Q_TL_Err() const
{
    return m_Q_TL_Err;
}

void ConnectManager::setQ_TL_Err(bool newQ_TL_Err)
{
    if (m_Q_TL_Err == newQ_TL_Err)
        return;
    m_Q_TL_Err = newQ_TL_Err;
    emit Q_TL_ErrChanged();
}

bool ConnectManager::Z_TL_Err() const
{
    return m_Z_TL_Err;
}

void ConnectManager::setZ_TL_Err(bool newZ_TL_Err)
{
    if (m_Z_TL_Err == newZ_TL_Err)
        return;
    m_Z_TL_Err = newZ_TL_Err;
    emit Z_TL_ErrChanged();
}

bool ConnectManager::H_TL_Err() const
{
    return m_H_TL_Err;
}

void ConnectManager::setH_TL_Err(bool newH_TL_Err)
{
    if (m_H_TL_Err == newH_TL_Err)
        return;
    m_H_TL_Err = newH_TL_Err;
    emit H_TL_ErrChanged();
}

bool ConnectManager::PLC_State() const
{
    return m_PLC_State;
}

void ConnectManager::setPLC_State(bool newPLC_State)
{
    if (m_PLC_State == newPLC_State)
        return;
    m_PLC_State = newPLC_State;
    emit PLC_StateChanged();
}

bool ConnectManager::Long_WorkState() const
{
    return m_Long_WorkState;
}

void ConnectManager::setLong_WorkState(bool newLong_WorkState)
{
    if (m_Long_WorkState == newLong_WorkState)
        return;
    m_Long_WorkState = newLong_WorkState;
    emit Long_WorkStateChanged();
}

bool ConnectManager::JM_WorkState() const
{
    return m_JM_WorkState;
}

void ConnectManager::setJM_WorkState(bool newJM_WorkState)
{
    if (m_JM_WorkState == newJM_WorkState)
        return;
    m_JM_WorkState = newJM_WorkState;
    emit JM_WorkStateChanged();
}

bool ConnectManager::MechineRunningState() const
{
    return m_MechineRunningState;
}

void ConnectManager::setMechineRunningState(bool newMechineRunningState)
{
    if (m_MechineRunningState == newMechineRunningState)
        return;
    m_MechineRunningState = newMechineRunningState;
    emit MechineRunningStateChanged();
}

bool ConnectManager::FindZeroState() const
{
    return m_FindZeroState;
}

void ConnectManager::setFindZeroState(bool newFindZeroState)
{
    if (m_FindZeroState == newFindZeroState)
        return;
    m_FindZeroState = newFindZeroState;
    emit FindZeroStateChanged();
}

bool ConnectManager::ZeroGoingState() const
{
    return m_ZeroGoingState;
}

void ConnectManager::setZeroGoingState(bool newZeroGoingState)
{
    if (m_ZeroGoingState == newZeroGoingState)
        return;
    m_ZeroGoingState = newZeroGoingState;
    emit ZeroGoingStateChanged();
}

bool ConnectManager::ExtraLong_Locating() const
{
    return m_ExtraLong_Locating;
}

void ConnectManager::setExtraLong_Locating(bool newExtraLong_Locating)
{
    if (m_ExtraLong_Locating == newExtraLong_Locating)
        return;
    m_ExtraLong_Locating = newExtraLong_Locating;
    emit ExtraLong_LocatingChanged();
}

bool ConnectManager::Short_WorkState() const
{
    return m_Short_WorkState;
}

void ConnectManager::setShort_WorkState(bool newShort_WorkState)
{
    if (m_Short_WorkState == newShort_WorkState)
        return;
    m_Short_WorkState = newShort_WorkState;
    emit Short_WorkStateChanged();
}

bool ConnectManager::CurrentSectionesWorked() const
{
    return m_CurrentSectionesWorked;
}

void ConnectManager::setCurrentSectionesWorked(bool newCurrentSectionesWorked)
{
    if (m_CurrentSectionesWorked == newCurrentSectionesWorked)
        return;
    m_CurrentSectionesWorked = newCurrentSectionesWorked;
    emit CurrentSectionesWorkedChanged();
}

int ConnectManager::QRTYPE() const
{
    return m_QRTYPE;
}

void ConnectManager::setQRTYPE(int newQRTYPE)
{
    if (m_QRTYPE == newQRTYPE)
        return;
    m_QRTYPE = newQRTYPE;
    emit QRTYPEChanged();
}

bool ConnectManager::M_172() const
{
    return m_M_172;
}

void ConnectManager::setM_172(bool newM_172)
{
    if (m_M_172 == newM_172)
        return;
    m_M_172 = newM_172;
    emit M_172Changed();
}

bool ConnectManager::M_46() const
{
    return m_M_46;
}

void ConnectManager::setM_46(bool newM_46)
{
    if (m_M_46 == newM_46)
        return;
    m_M_46 = newM_46;
    emit M_46Changed();
}

QString ConnectManager::D_156() const
{
    return m_D_156;
}

void ConnectManager::setD_156(const QString &newD_156)
{
    if (m_D_156 == newD_156)
        return;
    m_D_156 = newD_156;
    emit D_156Changed();
}

QString ConnectManager::QR_CurrentOrder() const
{
    return m_QR_CurrentOrder;
}

void ConnectManager::setQR_CurrentOrder(const QString &newQR_CurrentOrder)
{
    if (m_QR_CurrentOrder == newQR_CurrentOrder)
        return;
    m_QR_CurrentOrder = newQR_CurrentOrder;
    emit QR_CurrentOrderChanged();
}
